The DriveLetter property contains the drive letter of the local drive or a shared network.
<html> <script language="JScript"> <!-- var drivePath = "C:"; var fileSysObj = new ActiveXObject("Scripting.FileSystemObject"); var drive = fileSysObj.GetDrive(fileSysObj.GetDriveName(drivePath)); document.write("The driver letter for ",drivePath," is ",drive.DriveLetter); --> </script> </html>