ChDir Instruction

Syntax

ChDir Dir$

Group

File

Description

Change the current directory to Dir$.

Pocket PC

Not supported.

Sandbox

Sandbox mode blocks this instruction.

Parameters

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

Example


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

See also

ChDrive, CurDir$( )