Mega Code Archive

 
Categories / JavaScript Tutorial / MS JScript
 

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>