ChDrive Instruction
Syntax
ChDrive Drive$
Group
Description
Change the current drive to Drive$.
Pocket PC
Not supported.
Sandbox
Sandbox mode blocks this instruction.
Parameters
Parameters | Description |
---|---|
Drive$ | This string value is the drive letter. |
Example
Sub Main ChDrive "B" Debug.Print CurDir$() '"B:\" End Sub
See also