ChDrive Instruction

Syntax:

ChDrive Drive$

Group: File

Description:
Change the current drive to Drive$.

Parameter Description

Drive$ This string value is the drive letter.

See Also: ChDir, CurDir$( ).

Example:

Sub Main
  ChDrive "B"
  Debug.Print CurDir$() '"B:\"
End
Sub