Tutorial-Web Home > The FileSystem Object > The Drive Object

Object Menu

Drive
AvailableSpace
DriveLetter
DriveType
FileSystem
FreeSpace
IsReady
Path
RootFolder
SerialNumber
ShareName
TotalSize
VolumeName
File
Folder
FileSystem
TextStream

 


 
IsReady
TypeRead-Only
Return Value TypeBoolean
Usageobject.IsReady(Drive)
DescriptionDetermines if the information on the drive can be currently read or written. If the drive contains removeable media the value becomes true when readable media is placed in the drive.
ExampleCode:
drivename=''c:\''
Set fso = CreateObject(''Scripting.FileSystemObject'')
set maindrive=fso.GetDrive(drivename)
response.write maindrive.IsReady

Result:
False

The Bookworm
Search the Tutorial-Web library for books on any topic!
Sponsors

Search Now:
In Association with Amazon.com