VB6 ChDir statement syntax:
- ChDir path
Changes the current directory or folder.
The path argument can include a drive letter. If no drive is specified,
ChDir changes the current directory on the current drive.
Remarks
ChDirdoes not change the current drive. To change the drive as well, useChDrive.- If the path does not exist, an error occurs (Error 76: Path not found).
Examples
ChDir "C:\Temp"
ChDir "D:\Data"
ChDir "\var\log"