Drive.IsReady : Drive « MS JScript « JavaScript Tutorial






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>








32.5.Drive
32.5.1.Drive
32.5.2.Drive.AvaliableSpace
32.5.3.Drive.DriveLetter
32.5.4.Drive.DriveType
32.5.5.Drive.FileSystem
32.5.6.Drive.FreeSpace
32.5.7.Drive.IsReady
32.5.8.Drive.Path
32.5.9.Drive.RootFolder
32.5.10.Drive.SerialNumber
32.5.11.Drive.ShareName
32.5.12.Drive.TotalSize
32.5.13.Drive.VolumeName