The VolumeName property contains the volume name of the specified drive. If an equal sign follows this property, the volume name is set to newVolumeName.
<html>
<script language="JScript">
<!--
var drivePath = "C:";
var fileSysObj = new ActiveXObject("Scripting.FileSystemObject");
var drive = fileSysObj.GetDrive(fileSysObj.GetDriveName(drivePath));