|
Returns the network share name for a specified drive. This property is not available under UNIX.
object.ShareName
object
A Drive object.
If object is not a network drive, the ShareName property returns a zero-length string ("").
The following code illustrates the use of the ShareName property:
function ShowDriveInfo(drvpath)
{
var fs, d, s;
fs = new ActiveXObject("Scripting.FileSystemObject");
d = fs.GetDrive(fs.GetDriveName(fs.GetAbsolutepathname(drvpath)));
s = "Drive " + d.DriveLetter + ": - " + d.ShareName;
Response.Write(s);
}
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.