Folder.Path

JScript3.0+Syntax

							folder.Path

Description

The Path property of an instance of the Folder object returns the full path to the folder.

Example

Listing 9.108 is run in an Internet Explorer browser, and it contains a single button. When the button is clicked, an alert box pops up displaying the path of the folder.

Listing 9.108 Using the Path Property
 <html> <body> <script language="JavaScript1.2"> <!-- Hide function get(){ // Create a FileSystemObject object var myObject = new ActiveXObject("Scripting.FileSystemObject"); // Create a Folder object var myFolder = myObject.GetFolder("c:\\Temp"); // Display the path of the folder alert (myFolder.Path); } // End hide--> </script> Get the path of the c:\temp folder. <form name="myForm"> ...

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.