August 1999
Intermediate to advanced
1488 pages
72h 53m
English
driveobject.ShareName
The ShareName property of the Drive object contains the network share name for the specified drive.
Listing 9.35 provides a function that returns the share name of a drive.
function getShareName(drivePath)
{
//Create a file system object
var fileSysObj = new ActiveXObject("Scripting.FileSystemObject");
//Create a Drive object for the drivePath
var drive = fileSysObj.GetDrive(fileSysObj.GetDriveName(drivePath));
//Return share name of the drive
return(drive.ShareName);
}
|
Read now
Unlock full access