Returns the status of the drive which contains the specified path.
Status := DriveGetStatus(Path)
Type: String
Any path contained by the drive (might also work on UNC paths and mapped drives).
Type: String
This function returns the status of the drive which contains Path:
Status | Notes |
---|---|
Unknown | Might indicate unformatted/RAW file system. |
Ready | This is the most common. |
NotReady | Typical for removable drives that don't contain media. |
Invalid | Path does not exist or is a network drive that is presently inaccessible, etc. |
An exception is thrown on failure.
In general, Path can be any path. Since NTFS supports mounted volumes and directory junctions, different paths with the same drive letter can produce different results.
See example #1 on the Drive Functions page for a demonstration of this function.