Changes the current drive.
Public Overloads Sub ChDrive(ByVal Drive As { Char | String })
| Exception type | Error number | Condition |
|---|---|---|
| 68 | Invalid drive is specified, or drive is unavailable. |
This example uses the ChDrive function to change the current drive.
ChDrive("D") ' Make "D" the current drive.
ChDir Function | CurDir Function | MkDir Function | RmDir Function |