August 1999
Intermediate to advanced
1488 pages
72h 53m
English
folder.ShortName
The ShortName property of an instance of the Folder object returns the 8.3 name of the folder.
Listing 9.109 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 short name of the folder.
<html>
<body>
<script language="JScript">
<!-- Hide
function get(){
// Create a FileSystemObject object
var myObject = new ActiveXObject("Scripting.FileSystemObject");
// Create a Folder object
var myFolder = myObject.GetFolder("c:\\Program Files");
// Display the short name of the folder
alert (myFolder.ShortName);
}
// End hide-->
</script> Get the short ... |
Read now
Unlock full access