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

Visual Basic Runtime Library Members
Reading from Files
Writing to Files
Creating, Deleting, and Moving Files and Directories
Parsing Text Files with the TextFieldParser Object