Function CurDirectory() Foundation
Determines or changes the current directory of the process.
CurDirectory( [<cDirectory>] ) --> cPreviousDirectory
The return value of CurDirectory() is a string containing the previous current directory. It is specified as an absolute path without a trailing backslash character ("\"). If no argument is passed to the function, it returns the current directory.
The environment function CurDirectory() determines the current directory of the process. If a directory is specified in the <cDirectory> parameter, this directory becomes the process' new current directory. CurDirectory() correctly handles relative and absolute paths, including UNC paths.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.