Function Reference


FileChangeDir

Changes the current working directory.

FileChangeDir ( "path" )

Parameters

path The path to make the current working directory.

Return Value

Success: 1.
Failure: 0 if working directory not changed.

Remarks

@WorkingDir is changed on successful return.

Example

#include <MsgBoxConstants.au3>

Example()

Func Example()
        ; Display the current working directory.
        MsgBox($MB_SYSTEMMODAL, "", "The current working directory: " & @CRLF & @WorkingDir)

        ; Set the working directory @WorkingDir to the @WindowsDir directory. This is normally C:\Windows.
        FileChangeDir(@WindowsDir)

        ; Display the working directory after setting it to the windows directory.
        MsgBox($MB_SYSTEMMODAL, "", "The current working directory: " & @CRLF & @WorkingDir)
EndFunc   ;==>Example