We usually use the basic functions of FSO, but do programmers also understand special functions based on their understanding of these basic functions? I don’t think so. Now I will briefly analyze some special functions of fso for you, and go to the following to take a look!
Here are some of these incommon but very cool features:
FSO features that are rarely understood
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 name for when temporary data is required
GetAbsolutePathName Method Returns the absolute path to the folder (similar to Server.MapPath).
For example, FSO.GetAbsolutePathName("region") will return a result similar to the following: "c:mydocsmyfolder egg"
GetExtensionName Method Returns the extension of the last part of the path
(For example: FSO.GetExtensionName("c:docs est.txt") will return txt)
GetBaseName and GetParentFolder Methods Returns the parent folder of the last part of the path
(For example: FSO.GetParentFolder ("c:docsmydocs") will return 'docs')
Drives Property Returns a collection of all locally available drives for building resource browser-like user interfaces.
After we follow the above introduction, can we operate normally? The editor of the Error New Technology Channel will continue to push and update the knowledge you are interested in. If you are interested, you can continue to follow us!