Dela via


Directories and Files Summary

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 My.Computer.FileSystem Object.

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

Concepts

Parsing Text Files with the TextFieldParser Object

Reference

Keywords and Members by Task

Visual Basic Language Keywords

Visual Basic Run-Time Library Members

Keywords Compared in Different Languages

Other Resources

Reading from Files in Visual Basic

Writing to Files in Visual Basic

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

File, Directory, and Drive Properties in Visual Basic