VB6 ChDrive statement syntax:
- ChDrive drive
Changes the current drive.
The drive argument is a String expression that specifies the drive letter.
Only the first character is used; if the string is empty, no action occurs.
Remarks
- On Windows,
ChDrivechanges the current drive. On other platforms, it updates the tracked current drive letter for VB6 semantics. ChDrivedoes not affect the current directory.
Examples
ChDrive "D" ' Change to D: drive
ChDrive "E:" ' Change to E: drive