August 1999
Intermediate to advanced
1488 pages
72h 53m
English
filesystemobject.GetTempName()
The GetTempName() method is used to get a randomly generated temporary file or folder.
Listing 9.91 shows how the GetTempName() method is used. An instance of the FileSystemObject is created and then used to get the name of a randomly generated temporary file.
<html> <body> <script language="JScript"> <!-- Hide function get() { var myObject, name; // Create an instance of the FileSystemObject myObject = new ActiveXObject("Scripting.FileSystemObject"); // Get the name of a temporary file name = myObject.GetTempName(); alert("The temp file name is: " + name); } // End Hide --> </script> Get a temp file. ... |
Read now
Unlock full access