August 1999
Intermediate to advanced
1488 pages
72h 53m
English
filesystemobject.GetExtensionName(path)
The GetExtensionName() method is used to get the file extension name for a specified file. This method takes path as its only parameter, which represents the full path to the file.
Listing 9.85 shows how the GetExtensionName() method is used. An instance of the FileSystemObject is created and then used to get the extension name of the specified file type.
<html> <body> <script language="JScript"> <!-- Hide // gets the extension name for the file and informs the user // of the results function getExt() { var myObject, ext; // Creates an instance of the FileSystemObject myObject = new ... |
Read now
Unlock full access