Valid_Drive¶
Include: Use System\FileSystem.pkg
See Also: File_Exist, Make_Directory, Make_Temp_File
Purpose¶
Checks whether a root or drive is valid.
Syntax¶
Valid_Drive [FILE] {RootOrDrive} [to] {IsValid}
Arguments¶
FILE
: Optional file driver. The FILE driver is optional; when omitted, file operations use FILE.
{RootOrDrive}
: Root or drive to check. Use / for POSIX-style roots. Use C: as a Windows drive example.
{IsValid}
: Boolean variable that receives the result.
Example¶
Boolean bValid
Valid_Drive "/" to bValid
Valid_Drive "/" bValid
Valid_Drive "C:" to bValid // Windows