Function Reference

DriveStatus

Returns the status of the drive as a string.

DriveStatus ( "path" )

 

Parameters

path Path of drive to receive information from.

 

Return Value

Return Value Interpretation
UNKNOWN Drive may be unformatted (RAW).
READY Typical of hard drives and drives that contain removable media.
NOTREADY Typical of floppy and CD drives that do not contain media.
INVALID May indicate the drive letter does not exist or that a mapped network drive is inaccessible.

 

Remarks

The list of possible return values may be incomplete.
DriveStatus may even work when a complete directory path (which exists) is given. However, a file path won't work.

 

Related

DriveGetDrive, DriveGetFileSystem, DriveGetLabel, DriveGetSerial, DriveGetType, DriveSetLabel, DriveSpaceFree, DriveSpaceTotal

 

Example


$var = DriveStatus( "c:\" )
MsgBox(4096,"Status",$var)