Drive.VolumeName : Drive : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » Drive »

 

Drive.VolumeName









Syntax








driveobject.VolumeName
    driveobject.VolumeName = newVolumeName



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));

      document.write(drive.VolumeName);
    -->
</script>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» Drive