August 1999
Intermediate to advanced
1488 pages
72h 53m
English
folder.IsRootFolder
The IsRootFolder property of an instance of the Folder object, evaluates to true if the folder is the root folder, and false otherwise.
Listing 9.104 creates an instance of the Folder object, and then checks to see if it is the root folder. If this example is loaded in a browser, a string will be written to the user's page stating whether or not the folder is the root folder.
<script language="JScript1.1"> <!-- Hide // Create an instance of the FileSystemObject var myFileSysObj = new ActiveXObject("Scripting.FileSystemObject"); // Create an instance of the Folder object for the "temp" folder var myFolder = myFileSysObj.GetFolder("\\temp"); ... |
Read now
Unlock full access