Drive.AvaliableSpace : Drive : MS JScript JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » MS JScript » Drive »

 

Drive.AvaliableSpace









Syntax








driveobject.AvaliableSpace



The AvaliableSpace property contains the amount of space available.












<html>
    <script language="JScript">
    <!--

    var drivePath = "C:";
    var fileSysObj = new ActiveXObject("Scripting.FileSystemObject");

    var drive = fileSysObj.GetDrive(fileSysObj.GetDriveName(drivePath));

    document.write("Available space for drive ",drivePath," is ");
    document.write(drive.AvailableSpace);
    -->
    </script>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo MS JScript
» Drive