ChDir Instruction

Syntax:

ChDir Dir$

Group: File

Description:
Change the current directory to Dir$.

Parameter Description

Dir$ This string value is the path and name of the directory.

See Also: ChDrive, CurDir$( ).

Example:

Sub Main
  ChDir "C:\"
  Debug.Print CurDir$() '"C:\"
End
Sub