Section A.9. File System Objects
A 9 File System Objects
A.9.1 Drive Object
|
AvailableSpace Property |
Returns a number representing the available space on the drive in bytes |
|
DriveLetter Property |
Returns a string containing the drive letter |
|
DriveType Property |
Returns a DriveTypeConst specifying the type of drive |
|
FileSystem Property |
Returns a string containing an abbreviation for the filesystem type (i.e., FAT) |
|
FreeSpace Property |
Returns the free space on the drive in bytes |
|
IsReady Property |
Returns True if the specified drive is ready |
|
Path Property |
Returns a string containing the full path of the drive |
|
RootFolder Property |
Returns a Folder object representing the root of the drive |
|
SerialNumber Property |
Returns a Long containing the serial number of the disk |
|
ShareName Property |
Returns a String containing the share name, if any |
|
TotalSize Property |
Returns a variant containing the total size of the disk in bytes |
|
VolumeName Property |
Returns a string containing the name of the current volume |
A.9.2 Drives Collection Object
|
Count Property |
Returns the number of Drive objects in the collection |
|
Item Property |
Returns the Drive object associated with the given key (the drive name) |
A.9.3 File Object
|
Attributes Property |
Returns a FileAttributes constant |
|
Copy Method |
Copies this file to another location |
|
DateCreated Property |
Returns the date the file was created |
|
DateLastAccessed Property |
Returns the date the file was last accessed |
|
DateLastModified Property |
Returns the date the file was last modified |
|
Delete Method |
Removes this file |
|
Drive Property |
Returns a Drive object representing the drive on which this file is located |
|
Move Method |
Moves this file to another location |
|
Name Property |
Returns the name of this file |
|
OpenAsTextStream |
Opens this file for text manipulation and returns the open file as a TextStream object |
|
ParentFolder Property |
Returns a Folder object representing the folder in which this file is contained |
|
Path Property |
Returns a string containing the full path of this file |
|
ShortName Property |
Returns a string containing the short name of this file |
|
ShortPath Property |
Returns a string containing the short path of this file |
|
Size Property |
Returns a Variant specifying the size of this file |
|
Type Property |
Returns a string detailing the type of this file |
A.9.4 Files Collection Object
|
Count Property |
Returns the number of Folder objects in the collection |
|
Item Property |
Returns the File object associated with the specified key |
A.9.5 FileSystemObject Object
|
BuildPath Function |
Returns a string containing the full path |
|
CopyFile Method |
Copies a file |
|
CopyFolder Method |
Copies a folder and its contents |
|
CreateFolder Function |
Returns a Folder object for the newly created folder |
|
CreateTextFile Function |
Returns a TextStream object for the newly created text file |
|
DeleteFile Method |
Removes a file from disk |
|
DeleteFolder Method |
Removes the folder and its contents from disk |
|
DriveExists Function |
Returns True if the specified drive is found |
|
Drives Property |
Returns a Drive object |
|
FileExists Function |
Returns True if the specified file is found |
|
FolderExists Function |
Returns True if the specified folder is found |
|
GetAbsolutePathName Function |
Returns the canonical representation of the path |
|
GetBaseName Function |
Returns the base name from a path |
|
GetDrive Function |
Returns a Drive object for the specified drive |
|
GetDriveName Function |
Returns a string representing the name of a drive |
|
GetExtensionName Function |
Returns a string containing the extension from a given path |
|
GetFile Function |
Returns a File object |
|
GetFileName Function |
Returns a string containing the name of a file from a given path |
|
GetFileVersion Function |
Returns a string containing the version of a file |
|
GetFolder Function |
Returns a Folder object |
|
GetParentFolderName Function |
Returns the name of the folder immediately above the folder in a given path |
|
GetSpecialFolder Function |
Returns a folder object representing one of the special Windows folders |
|
GetStandardStream |
Returns a TextStream object representing the standard input, standard output, or standard error stream |
|
GetTempName Function |
Returns a string containing a valid windows temporary filename |
|
MoveFile Method |
Moves a file from one location to another |
|
MoveFolder Method |
Moves a folder and all its contents from one location to another |
|
OpenTextFile Function |
Returns a TextStream object of the opened file |
A.9.6 Folder Object
|
Attributes Property |
Returns a FileAttributes constant value |
|
Copy Method |
Copies this folder and its contents to another location |
|
CreateTextFile Function |
Returns a TextStream object for the newly created text file |
|
DateCreated Property |
Returns the date the folder was created |
|
DateLastAccessed Property |
Returns the date the folder was last accessed |
|
DateLastModified Property |
Returns the date the folder was last modified |
|
Delete Method |
Removes the folder and all its contents |
|
Drive Property |
Returns a Drive object representing the drive on which the folder is located |
|
Files Property |
Returns a Files collection object representing the files in the folder |
|
IsRootFolder Property |
Returns True if the folder is the root of the drive |
|
Move Method |
Moves the folder and its contents to another location |
|
Name Property |
Returns the name of the folder |
|
ParentFolder Property |
Returns a Folder object representing the next folder up in hierarchy |
|
Path Property |
Returns a string containing the full path of the folder |
|
ShortName Property |
Returns a string containing the short name of the folder |
|
ShortPath Property |
Returns a string containing the short path of the folder |
|
Size Property |
Returns a Variant specifying the total size of all files and all subfolders contained in the folder |
|
SubFolders Property |
Returns a Folders collection object representing the subfolders contained in the folder |
|
Type Property |
Returns a string detailing the type of folder |
A.9.7 Folders Collection Object
|
Add Function |
Returns a Folder object for the newly created folder |
|
Count Property |
Returns the number of Folder objects in the collection |
|
Item Property |
Returns the Folder object associated with the specified key |
A.9.8 TextStreamObject
|
AtEndOfLine Property |
Returns True if the end of the line has been reached |
|
AtEndOfStream Property |
Returns True if the end of the text stream has been reached |
|
Close Method |
Closes the TextStream object |
|
Column Property |
Returns a Long specifying the current column number |
|
Line Property |
Returns a Long specifying the current line number |
|
Read Function |
Returns a string containing a specified number of characters from the TextStream |
|
ReadAll Function |
Returns a string containing the entire contents the TextStream |
|
ReadLine Function |
Returns a string containing the current line within the TextStream |
|
Skip Method |
Skips a specified number of characters |
|
SkipLine Method |
Skips to the next line |
|
Write Method |
Writes a specified string to the TextStream |
|
WriteBlankLines Method |
Writes a specified number of blank lines to the TextStream |
|
WriteLine Method |
Writes a specified string and a line break to the TextStream |