ChDrive
Changes the current drive.
Syntax: ChDrive drive
- drive
-
A string expression that specifies an existing drive. If you supply a zero-length string (“”), the current drive doesn’t change. If the drive argument is a multiple-character string, ChDrive uses only the first letter.
See Also
Example
This example uses the ChDrive statement to change the current drive.
ChDrive "D" ' Make "D" the current drive.