Delen via


Directories and Files Summary (Visual Basic)

Visual Basic language keywords and run-time library members are organized by purpose and use.

Using the My feature gives you greater productivity and performance in file I/O operations than using these members. For more information, see FileSystem.

Action

Language element

Change a directory or folder.

ChDir

Change the drive.

ChDrive

Copy a file.

FileCopy

Make a directory or folder.

MkDir

Remove a directory or folder.

RmDir

Rename a file, directory, or folder.

Rename

Return the current path.

CurDir

Return a file's date/time stamp.

FileDateTime

Return file, directory, or label attributes.

GetAttr

Return a file's length.

FileLen

Return a file's name or volume label.

Dir

Set attribute information for a file.

SetAttr

See Also

Reference

Visual Basic Runtime Library Members

Concepts

Parsing Text Files with the TextFieldParser Object (Visual Basic)

Other Resources

Keywords (Visual Basic)

Reading from Files in Visual Basic

Writing to Files in Visual Basic

Creating, Deleting, and Moving Files and Directories in Visual Basic