Some special features of FSO

zhaozj2021-02-16  52

The following is listed below these uncommon but very cool features:

Few Understanding FSO Functions GetSpecialFolder Method Returns the path to a specific Windows folder: Windows installation directory; Windows system directory; Windows Temporary Directory Fso.getspecialFolder ([0, 1, or 2]) getTemPName Method Returns a randomly generated file Or directory names for the need to store temporary data to return to the absolute path of the folder (similar to server.mappath). For example, fso.getabsolutePathname ("Region") will return to the following results: "c: mydocsmyfolder egion" getExtensionName Method returns the extension of the last part of the path (such as fso.getextensionname ("C: DOCS Est.txt") TXT) GetBaseName and getParentFolder Methods returns the parent folder of the last part of the path (such as: fso.getParentFolder ("C: DOCSMYDOCS") will return 'DOCS') DRIVES Property Returns a collection of all local available drives for establishing resources The user interface of the browser.

When using the above features, it is best to build the code for error processing. Because if the parameters needed do not exist, trouble information will be generated.

转载请注明原文地址:https://www.9cbs.com/read-23961.html

New Post(0)