Returns the status of the drive which contains the specified path.
Status := DriveGetStatus(Path)
Any path contained by the drive (might also work on UNC paths and mapped drives).
This function returns the status of the drive which contains the specified path:
|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.