FileSystemProxy Class
Provides properties and methods for working with drives, files, and directories.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
| Name | Description | |
|---|---|---|
![]() | CurrentDirectory | Gets or sets the current directory. |
![]() | Drives | Returns a read-only collection of all available drive names. |
![]() | SpecialDirectories | Gets an object that provides properties for accessing commonly referenced directories. |
| Name | Description | |
|---|---|---|
![]() | CombinePath(String^, String^) | Combines two paths and returns a properly formatted path. |
![]() | CopyDirectory(String^, String^) | Copies a directory to another directory. |
![]() | CopyDirectory(String^, String^, Boolean) | Copies a directory to another directory. |
![]() | CopyDirectory(String^, String^, UIOption) | Copies a directory to another directory. |
![]() | CopyDirectory(String^, String^, UIOption, UICancelOption) | Copies a directory to another directory. |
![]() | CopyFile(String^, String^) | Copies a file to a new location. |
![]() | CopyFile(String^, String^, Boolean) | Copies a file to a new location. |
![]() | CopyFile(String^, String^, UIOption) | Copies a file to a new location. |
![]() | CopyFile(String^, String^, UIOption, UICancelOption) | Copies a file to a new location. |
![]() | CreateDirectory(String^) | Creates a directory. |
![]() | DeleteDirectory(String^, DeleteDirectoryOption) | Deletes a directory. |
![]() | DeleteDirectory(String^, UIOption, RecycleOption) | Deletes a directory. |
![]() | DeleteDirectory(String^, UIOption, RecycleOption, UICancelOption) | Deletes a directory. |
![]() | DeleteFile(String^) | Deletes a file. |
![]() | DeleteFile(String^, UIOption, RecycleOption) | Deletes a file. |
![]() | DeleteFile(String^, UIOption, RecycleOption, UICancelOption) | Deletes a file. |
![]() | DirectoryExists(String^) | Returns True if the specified directory exists. |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | FileExists(String^) | Returns True if the specified file exists. |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | FindInFiles(String^, String^, Boolean, SearchOption) | Returns a read-only collection of strings representing the names of files containing the specified text. |
![]() | FindInFiles(String^, String^, Boolean, SearchOption, array<String^>^) | Returns a read-only collection of strings representing the names of files containing the specified text. |
![]() | GetDirectories(String^) | Returns a collection of strings representing the path names of subdirectories within a directory. |
![]() | GetDirectories(String^, SearchOption, array<String^>^) | Returns a collection of strings representing the path names of subdirectories within a directory. |
![]() | GetDirectoryInfo(String^) | Returns a DirectoryInfo object for the specified path. |
![]() | GetDriveInfo(String^) | Returns a DriveInfo object for the specified drive. |
![]() | GetFileInfo(String^) | Returns a FileInfo object for the specified file. |
![]() | GetFiles(String^) | Returns a read-only collection of strings representing the names of files within a directory. |
![]() | GetFiles(String^, SearchOption, array<String^>^) | Returns a read-only collection of strings representing the names of files within a directory. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetName(String^) | Parses the file name out of the path provided. |
![]() | GetParentPath(String^) | Returns the parent path of the provided path. |
![]() | GetTempFileName() | Creates a uniquely named zero-byte temporary file on disk and returns the full path of that file. |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | MoveDirectory(String^, String^) | Moves a directory from one location to another. |
![]() | MoveDirectory(String^, String^, Boolean) | Moves a directory from one location to another. |
![]() | MoveDirectory(String^, String^, UIOption) | Moves a directory from one location to another. |
![]() | MoveDirectory(String^, String^, UIOption, UICancelOption) | Moves a directory from one location to another. |
![]() | MoveFile(String^, String^) | Moves a file to a new location. |
![]() | MoveFile(String^, String^, Boolean) | Moves a file to a new location. |
![]() | MoveFile(String^, String^, UIOption) | Moves a file to a new location. |
![]() | MoveFile(String^, String^, UIOption, UICancelOption) | Moves a file to a new location. |
![]() | OpenTextFieldParser(String^) | The OpenTextFieldParser method allows you to create a TextFieldParser object, which provides a way to easily and efficiently parse structured text files, such as logs. The TextFieldParser object can be used to read both delimited and fixed-width files. |
![]() | OpenTextFieldParser(String^, array<Int32>^) | The OpenTextFieldParser method allows you to create a TextFieldParser object, which provides a way to easily and efficiently parse structured text files, such as logs. The TextFieldParser object can be used to read both delimited and fixed-width files. |
![]() | OpenTextFieldParser(String^, array<String^>^) | The OpenTextFieldParser method allows you to create a TextFieldParser object, which provides a way to easily and efficiently parse structured text files, such as logs. The TextFieldParser object can be used to read both delimited and fixed-width files. |
![]() | OpenTextFileReader(String^) | Opens a StreamReader object to read from a file. |
![]() | OpenTextFileReader(String^, Encoding^) | Opens a StreamReader object to read from a file. |
![]() | OpenTextFileWriter(String^, Boolean) | Opens a StreamWriter object to write to the specified file. |
![]() | OpenTextFileWriter(String^, Boolean, Encoding^) | Opens a StreamWriter to write to the specified file. |
![]() | ReadAllBytes(String^) | Returns the contents of a file as a byte array. |
![]() | ReadAllText(String^) | Returns the contents of a text file as a String. |
![]() | ReadAllText(String^, Encoding^) | Returns the contents of a text file as a String. |
![]() | RenameDirectory(String^, String^) | Renames a directory. |
![]() | RenameFile(String^, String^) | Renames a file. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | WriteAllBytes(String^, array<Byte>^, Boolean) | Writes data to a binary file. |
![]() | WriteAllText(String^, String^, Boolean) | Writes text to a file. |
![]() | WriteAllText(String^, String^, Boolean, Encoding^) | Writes text to a file. |
The following table lists examples of tasks involving the My.Computer.FileSystem object.
This example checks to determine whether the folder C:\backup\logs exists and checks its properties.
Dim logInfo As System.IO.DirectoryInfo If My.Computer.FileSystem.DirectoryExists("C:\backup\logs") Then logInfo = My.Computer.FileSystem.GetDirectoryInfo( "C:\backup\logs") End If
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


