Mega Code Archive

 
Categories / JavaScript Tutorial / MS JScript
 

Drive IsReady

If the drive is ready, true is returned, otherwise false is returned. <html>     <script language="JScript">     <!--     var drivePath = "A:";     var drive = fileSysObj.GetDrive(fileSysObj.GetDriveName(drivePath));     if(drive.IsReady)       document.write("Drive ",drivePath," is ready.");     else       document.write("Drive ",drivePath," is NOT ready.");     -->     </script> </html>