VALIDDRIVE( )
Topic group Related topics Example
Returns true if the specified drive exists and can be read. Returns false if the specified drive does not exist or cannot be read.
Syntax
VALIDDRIVE(<drive expC>)
<drive expC>
The drive to be tested, which can be either:
A drive letter, optionally followed by a colon, or
The UNC name for a drive
Description
Use VALIDDRIVE( ) to determine if a specified drive exists and is ready before using CD, SET DEFAULT, SET DIRECTORY or SET PATH. VALIDDRIVE( ) is also useful if your program copies files to or from a drive, or includes drive letters in any file names.
VALIDDRIVE( ) can verify any drive specified, including drives created by partitioning a hard disk and mapped network drives. Checking for a floppy disk or network drive takes a few seconds, so you should display a message before you check.