FSO series of two **filesystemobject constant

Source: Internet
Author: User
Tags constant
The filesystemobject|fso| constant FileSystemObject has a number of valuable constants that can be used in program code. The advantage of constants is that we can easily use certain values without remembering their specific values. Constants also make the program more maintainable if the value of the constant can change.
On some scripting hosts, these constants are already defined. In this case, it is OK to use the constants directly in the code where the values are needed. However, if Scrrun. DLLs are not explicitly referenced by the scripting host, you need to define them before using constants. Examples of this include Microsoft Internet Explorer and Microsoft Internet Information Services (IIS).

The following list describes the different types of constants provided for FileSystemObject, each of which provides a brief description:

DRIVETYPE constant
Defines the various drive types that can be used on the host, such as Fixed, removable, CD-ROM, and so on.

File attribute Constants
Various file attributes, such as Hidden, read-only, etc., are defined.

File input/Output constants
Defines constants for file input and output.

SPECIALFOLDER constant
Defines the special folders that can be used in the operating system.

These constants have their own definition values, and in the example below we can see how they are used.



Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.