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. Const crlf$ = Chr$(13) + Chr$(10) Sub Main() Dim d() |
See Also |
ChDir (statement); CurDir, CurDir$ (functions); Dir, Dir$ (functions); MkDir (statement); RmDir (statement); DiskDrives (statement). |
C |