Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

ASP IsReady Property

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

The ASP IsReady Property is used to return a boolean value that specifies whether the drive is ready or not. It returns true if the specified drive is ready, otherwise, it returns false.

Syntax:

DriveObject.IsReady

Example: The below code demonstrates the ASP Drive.IsReady Property.  

ASP




<%
dim fs,d,n
set fs=Server.CreateObject("Scripting.FileSystemObject")
    
'Get the drive to be checked
set d=fs.GetDrive("c:")
  
n = "Drive " & d.DriveLetter & " is ready: "
  
'Check if the drive is ready
if d.IsReady=true then
  n=n & "true"
else
  n=n & "false"
end if
  
'Write out the response
Response.Write(n)
  
set d=nothing
set fs=nothing
%>

Output:

Drive C is ready: true
My Personal Notes arrow_drop_up
Last Updated : 19 Mar, 2021
Like Article
Save Article
Similar Reads
Related Tutorials