image\cslogo3d1.gif

JScript Folder Object ShortName Property

Returns the short name used by programs that require the earlier 8.3 naming convention. This property is not available under UNIX.

Syntax: JScript Folder Object ShortName Property

object.ShortName

Arguments: JScript Folder Object ShortName Property

object

A Folder object.

Remarks: JScript Folder Object ShortName Property

The following code illustrates the use of the ShortName property with a Folder object:

function ShowShortName(filespec)

{

var fs, f, s;

fs = new ActiveXObject("Scripting.FileSystemObject");

f = fs.GetFolder(filespec);

s = "The short name for " + "" + f.Name;

s += "" + "<br>";

s += "is: " + "" + f.ShortName + "";

Response.Write(s);

}

Copyright 2001 Sun Microsystems, Inc. All rights reserved. Legal Notice.