Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

FileSystem Members

The FileSystem module contains the procedures used to perform file, directory or folder, and system operations. The My feature gives you greater productivity and performance in file I/O operations than using the FileSystem module. For more information, see My.Computer.FileSystem Object.

The following tables list the members exposed by the FileSystem type.

(see also Protected Methods )
  Name Description
Public method Static ChDir Changes the current directory or folder. The My feature provides you with greater productivity and performance in file I/O operations than the ChDir function. For more information, see My.Computer.FileSystem.CurrentDirectory Property
Public method Static ChDrive Overloaded. Changes the current drive.
Public method Static CurDir Overloaded. Returns a string representing the current path. The My.Computer.FileSystem Object gives you greater productivity and performance in file I/O operations than CurDir. For more information, see My.Computer.FileSystem.CurrentDirectory Property.
Public method Static Dir Overloaded. Returns a string representing the name of a file, directory, or folder that matches a specified pattern or file attribute, or the volume label of a drive. The My.Computer.FileSystem Object gives you greater productivity and performance in file I/O operations than the Dir function. See My.Computer.FileSystem.GetDirectoryInfo Method for more information.
Public method Static EOF Returns a Boolean value True when the end of a file opened for Random or sequential Input has been reached.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method Static FileAttr Returns an enumeration representing the file mode for files opened using the FileOpen function. The My.Computer.FileSystem Object gives you greater productivity and performance in file I/O operations than the FileAttr function. See My.Computer.FileSystem.GetFileInfo Method for more information.
Public method Static FileClose Concludes input/output (I/O) to a file opened using the FileOpen function. Using My gives you greater productivity and performance in file I/O operations. See My.Computer.FileSystem Object for more information.
Public method Static FileCopy Copies a file. The My.Computer.FileSystem Object gives you greater productivity and performance in file I/O operations than FileCopy. See My.Computer.FileSystem.CopyFile Method for more information.
Public method Static FileDateTime Returns a Date value that indicates the date and time a file was created or last modified. The My feature gives you greater productivity and performance in file I/O operations than FileDateTime. For more information, see My.Computer.FileSystem.GetFileInfo Method.
Public method Static FileGet Overloaded. Reads data from an open disk file into a variable. The My feature gives you greater productivity and performance in file I/O operations than FileGet. For more information, see My.Computer.FileSystem Object.
Public method Static FileGetObject Reads data from an open disk file into a variable. The My feature gives you greater productivity and performance in file I/O operations than FileGetObject. For more information, see My.Computer.FileSystem Object.
Public method Static FileLen Returns a Long value specifying the length of a file in bytes. The My feature gives you greater productivity and performance in file I/O operations than FileLen. For more information, see My.Computer.FileSystem.GetFileInfo Method.
Public method Static FileOpen Opens a file for input or output. The My feature gives you greater productivity and performance in file I/O operations than FileOpen. For more information, see My.Computer.FileSystem Object.
Public method Static FilePut Overloaded. Writes data from a variable to a disk file. The My feature gives you greater productivity and performance in file I/O operations than FilePut. For more information, see My.Computer.FileSystem Object.
Public method Static FilePutObject Writes data from a variable to a disk file. The My feature gives you greater productivity and performance in file I/O operations than FilePutObject. For more information, see My.Computer.FileSystem Object.
Public method Static FileWidth Assigns an output line width to a file opened using the FileOpen function.
Public method Static FreeFile Returns an Integer value representing the next file number available for use by the FileOpen function.
Public method Static GetAttr Returns a FileAttribute value representing the attributes of a file, directory, or folder. The My feature gives you greater productivity and performance in file I/O operations than FileAttribute. For more information, see My.Computer.FileSystem Object.
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Static Input Overloaded. Reads data from an open sequential file and assigns the data to variables.
Public method Static InputString Returns String value containing characters from a file opened in Input or Binary mode. The My feature gives you greater productivity and performance in file I/O operations than InputString. For more information, see My.Computer.FileSystem Object.
Public method Static Kill Deletes files from a disk. The My feature gives you greater productivity and performance in file I/O operations than Kill. For more information, see My.Computer.FileSystem Object.
Public method Static LineInput Reads a single line from an open sequential file and assigns it to a String variable.
Public method Static Loc Returns a Long value specifying the current read/write position within an open file.
Public method Static Lock Overloaded. Controls access by other processes to all or part of a file opened using the Open function. The My feature gives you greater productivity and performance in file I/O operations than Lock and Unlock. For more information, see My.Computer.FileSystem Object.
Public method Static LOF Returns a Long representing the size, in bytes, of a file opened using the FileOpen function. The My feature gives you greater productivity and performance in file I/O operations than LOF. For more information, see My.Computer.FileSystem Object.
Public method Static MkDir Creates a new directory. The My feature gives you greater productivity and performance in file I/O operations than MkDir. For more information, see My.Computer.FileSystem.CreateDirectory Method.
Public method Static Print Writes display-formatted data to a sequential file.
Public method Static PrintLine Writes display-formatted data to a sequential file.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method Static Rename Renames a disk file or directory. The My feature gives you greater productivity and performance in file I/O operations than Rename. For more information, see My.Computer.FileSystem Object.
Public method Static Reset Closes all disk files opened using the FileOpen function. The My feature gives you greater productivity and performance in file I/O operations than Reset. For more information, see My.Computer.FileSystem Object.
Public method Static RmDir Removes an existing directory. The My feature gives you greater productivity and performance in file I/O operations than RmDir. For more information, see My.Computer.FileSystem.DeleteDirectory Method.
Public method Static Seek Overloaded. Returns a Long specifying the current read/write position within a file opened using the FileOpen function, or sets the position for the next read/write operation within a file opened using the FileOpen function. The My feature gives you greater productivity and performance in file I/O operations than Seek. For more information, see My.Computer.FileSystem Object.
Public method Static SetAttr Sets attribute information for a file. The My feature gives you greater productivity and performance in file I/O operations than SetAttr. For more information, see My.Computer.FileSystem Object.
Public method Static SPC Used with the Print or PrintLine function to position output.
Public method Static TAB Overloaded. Used with the Print or PrintLine functions to position output.
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)
Public method Static Unlock Overloaded. Controls access by other processes to all or part of a file opened using the Open function. The My feature gives you greater productivity and performance in file I/O operations than Lock and Unlock. For more information, see My.Computer.FileSystem Object.
Public method Static Write Writes data to a sequential file. Data written with Write is usually read from a file with Input.
Public method Static WriteLine Writes data to a sequential file. Data written with Write is usually read from a file with Input.
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top

Community Additions

ADD
Show:
© 2015 Microsoft