working directory
If no parameter is provided: Retrieve the working directory path.
If a directory path is provided: Change to a different working directory
Indirect parameter passing is disabled
0 - 1
No. | Type | Description |
---|---|---|
Opt. 1 input |
string | new path and directory name This is the path to change directory.
|
Type | Description |
---|---|
string | Working directory Full path name of working directory. It does not have a directory separator symbol at the end. |
Specified working directory does not exist or is not accessible
echo( working directory() );
working directory(".."); // One directory out
echo( working directory() );
echo("Jump to ", system info[bin directory] );
working directory(system info[bin directory]); // Absolute path
echo( working directory() );
C:\Users\zur-b\OneDrive\Documents\Programme\Beyond4P\B4P_Docu_Maker
C:\Users\zur-b\OneDrive\Documents\Programme\Beyond4P
Jump to C:\Program Files\b4p
C:\Program Files\b4p