The ShareName property contains the network share name for the specified drive.
<html> <script language="JScript"> <!-- var drivePath = "C:"; var fileSysObj = new ActiveXObject("Scripting.FileSystemObject"); var drive = fileSysObj.GetDrive(fileSysObj.GetDriveName(drivePath)); document.write(drive.ShareName); --> </script> </html>