My.Computer.FileSystem Object Members
The My.Computer.FileSystem Object provides properties and methods for working with drives, files, and directories.
Properties
Property |
Description |
---|---|
Gets the current directory. |
|
Gets information about drives. |
|
Returns the My.Computer.FileSystem.SpecialDirectories Object, which can be used to access special directories, such as Temp or MyDocuments. |
Methods
Method |
Description |
---|---|
Returns a correctly formatted combined path as a String. |
|
Copies a directory. |
|
Copies a file. |
|
Creates a directory. |
|
Deletes a directory. |
|
Deletes a file. |
|
Returns a Boolean indicating whether a directory exists. |
|
Returns a Boolean indicating whether a file exists. |
|
Returns a read-only collection of strings that represent the names of files that contains the specified text. |
|
Returns a String collection representing the path names of subdirectories in a directory. |
|
Returns a DirectoryInfo object for the specified path. |
|
Returns a DriveInfo object for the specified path. |
|
Returns a FileInfo object for the specified path. |
|
Returns a read-only String collection representing the names of files in a directory. |
|
Returns a String representing the absolute path of the parent of the provided path. |
|
Moves a directory. |
|
Moves a file. |
|
Opens a TextFieldParser. |
|
Opens a TextReader. |
|
Opens a TextWriter. |
|
Reads from a binary file. |
|
Reads from a text file. |
|
Renames a directory. |
|
Renames a file. |
|
Writes to a binary file. |
|
Writes to a text file. |
See Also
Tasks
Walkthrough: Manipulating Files and Directories in Visual Basic
Concepts
Parsing Text Files with the TextFieldParser Object
Reference
Other Resources
Reading from Files in Visual Basic
Writing to Files in Visual Basic
Creating, Deleting, and Moving Files and Directories in Visual Basic