August 1999
Intermediate to advanced
1488 pages
72h 53m
English
filesystemobject.BuildPath(path, name)
path String representing existing path
name Name being appended to existing path
The BuildPath() method is used to append a name to an existing path. A separator is inserted between the existing path and the appended name if necessary.
Listing 9.70 shows how to use the BuildPath() method.
<html> <body> <script language="JScript"> <!--Hide function GetNewPath(path) { var myObject, newpath; // Create an instance of the FileSystemObject myObject = new ActiveXObject("Scripting.FileSystemObject"); newpath = myObject.BuildPath(path, "/newstuff"); alert("The result is: " + newpath); } // End Hide --> </script> ... |
Read now
Unlock full access