Folder.IsRootFolder

JScript3.0+Syntax

							folder.IsRootFolder

Description

The IsRootFolder property of an instance of the Folder object, evaluates to true if the folder is the root folder, and false otherwise.

Example

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.

Listing 9.104 Using the IsRootFolder Property
 <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"); ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.