Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP IsReady Property

ASP IsReady Property


Drive Object Reference Complete Drive Object Reference Manual


The IsReady property returns whether a specified drive is ready. It is true if ready, false if not ready.

**Note:** For removable media drives and CD-ROM drives, IsReady returns True only when the appropriate media is inserted and ready for access.

Syntax

DriveObject.IsReady

Example

<%

dim fs,d,n

set fs=Server.CreateObject("Scripting.FileSystemObject")

set d=fs.GetDrive("a:")

n = "The " & d.DriveLetter

if d.IsReady=true then

  n=n & " drive is ready!"

else

  n=n & " drive is not ready!"

end if

Response.Write(n)

set d=nothing

set fs=nothing

%>

Output:

The A drive is not ready!


Drive Object Reference Complete Drive Object Reference Manual