Changes the current working directory.
FileChangeDir ( "path" )
path | The path to make the current working directory. |
Success: | 1. |
Failure: | 0 if working directory not changed. |
@WorkingDir is changed on successful return.
#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