ShortPath Property
Returns the short path name converted in accordance with the 8.3 naming convention.
object.ShortPath
Object should be the name of the File or Folder object.
Description
The following code provides an example of how to use
Type Property
Returns the type information for a file or folder. For example, for an extension of. TXT file, return "Text document".
object.Type
Object should be the name of the File or Folder object.
Description
The following code provides an
Regular expressions
If you have not used regular expressions before, you may not be familiar with this term or concept. However, they are not as novel as you might think.
Recall how you found the file on your hard disk. Are you sure you will use
Ordinary characters
Normal characters are made up of all print and nonprinting characters that are not explicitly specified as metacharacters. This includes all uppercase and lowercase alphabetic characters, all numbers, all punctuation marks, and
Read method
Reads the specified number of characters from the textstream file and returns the result string.
object.Read(characters)
Parameters
Object
Required option. Should be the name of the TextStream object.
Characters
Required option.
Skip method
Skips a specified number of characters while reading the textstream file.
object.Skip(characters)
Parameters
Object
Required option. Should be the name of the TextStream object.
Characters
Required option. The number of characters
WriteBlankLines method
Writes a specified number of new line characters in the textstream file.
object.WriteBlankLines(lines)
Parameters
Object
Required option. Should be the name of the TextStream object.
Lines
Required option. The number of
Drives Collection
Read only the collection of all available drives.
Description
Removable media drives are displayed in the drives collection, whether or not they are inserted into the media.
The following code illustrates how to get the drives
FileSystemObject objects
Provides access to the computer's file system.
Description
The following code illustrates how to use the FileSystemObject object to return a TextStream object that can be read or written to:
Dim fso, MyFileSet fso =
Folders Collection
A collection of all the folder objects contained in a folder object.
Description
The following code illustrates how to get the Folders collection and use the For each ... Next statement to enumerate the members of the
AtEndOfLine Property
textstream file, returns Trueif the file pointer points to the end of the line, or Falseif it is not read-only.
object.AtEndOfLine
Object should be the name of the TextStream object.
Description
The AtEndOfLine property
Column Property
A read-only property that returns the column number of the current character position in the textstream file.
object.Column
object is usually the name of the TextStream object.
Description
After writing a new line character, but
Drive Property
Returns the drive letter of the drive that contains the specified file or folder. Read-only.
object.Drive
Object should be the name of the File or Folder object.
Description
The following code provides an example of how to use
DriveLetter Property
Returns the drive letter for a local drive or network share. Read-only.
object.DriveLetter
object should be the name of the Drive object.
Description
If the specified drive is not associated with a drive letter (for
Drives property
Returns a drives collection of all Drive objects on the local machine.
object.Drives
Object should be the name of the FileSystemObject object.
Description
Removable media drives are displayed in the drives collection, whether or not
DriveType Property
Returns a value that describes the type of the specified drive.
object.DriveType
object should be the name of the Drive object.
Description
The following code provides an example of how to use the DriveType property:
Files Property
Returns the files collection that consists of all the file objects in the specified folder, including hidden and system files.
object.Files
object should be the name of the Folder object.
Description
The following code provides
FreeSpace Property
Returns the amount of free space for a specified drive or network share for the user. Read-only.
object.FreeSpace
object should be the name of the Drive object.
Description
The FreeSpace property is essentially the same as
IsReady Property
Returns Trueif the specified drive is ready, otherwise returns False.
object.IsReady
object should be the name of the Drive object.
Description
For removable media drives and CD-ROM drives,isready returns Trueonly if the
IsRootFolder Property
Returns Trueif the specified folder is the root folder, otherwise returns False.
object.IsRootFolder
object should be the name of the Folder object.
Description
The following code provides an example of how to use the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service