August 1999
Intermediate to advanced
1488 pages
72h 53m
English
filesystemobject.GetAbsolutePathName(/Pathname/)
The GetAbsolutePathName() method returns a complete and unambiguous path from a provided path specification.
Listing 9.81 shows how to use the GetAbsolutePathName() method.
<html> <body> <script language="JScript"> <!-- Hide // function gets the absolute path and informs the user function getpath() { var myObject, path; // Create an instance of the FileSystemObject myObject = new ActiveXObject("Scripting.FileSystemObject"); path = myObject.GetAbsolutePathName("c:\\") alert("Absolute Path Name is: " + path); } // End Hide --> </script> Get the Absolute Path for C:\ <form ... |
Read now
Unlock full access