ChDrive Statement
Changes the current disk drive for file operations.
Syntax
ChDrive drive
Parameters
- drive
- Specify a valid drive (with one character).
Description
ChDrive is available only with the PC disk.
When the power is turned on, the “C” drive will be the current drive if a project is closed. If a project is open, the drive of the opened project will be the current drive.
See ChDisk for the details.
The parameter is stored in compact flash in controller. Therefore, writing to command flash occurs when executing this command. Frequent writing to compact flash affect to lifetime of compact flash. We recommend to use this command minimally.
See Also
ChDir, ChDisk, CurDrive$
ChDrive Statement Example
The following examples are done from the command window.
> ChDrive d