ChDrive (statement)
Syntax | ChDrive DriveLetter$ |
Description | Changes the default drive to the specified drive. |
Comments | Only the first character of DriveLetter$ is used. DriveLetter$ is not case-sensitive. If DriveLetter$ is empty, then the current drive is not changed. |
Example |
This example allows the user to select a new current drive and uses ChDrive to make their choice the new current drive.
|
See Also | ChDir (statement); CurDir, CurDir$ (functions); Dir, Dir$ (functions); MkDir (statement); RmDir (statement); DiskDrives (statement). |