August 1999
Intermediate to advanced
1488 pages
72h 53m
English
filesystemobject.GetSpecialFolder(num)
The GetSpecialFolder() method is used to get the special folder object specified. This method takes num as its only parameter, which represents one of the following values:
0 Windows folder
1 System folder
2 Temporary folder
Listing 9.90 shows how the GetSpecialFolder() method is used to get the Temporary folder.
<html> <body> <script language="JScript"> <!-- Hide function get() { var myObject, name; // Creates an instance of the FileSystemObject myObject = new ActiveXObject("Scripting.FileSystemObject"); name = myObject.GetSpecialFolder(2); alert("The folder is a temporary folder" + ... |
Read now
Unlock full access