SET_CWD ​
SET_CWD sets the current working directory
Syntax ​
leo-grammar
CC "AdoScript" SET_CWD path:strValue
# -->RESULT ecode:intValue .
Parameters ​
path
(strValue) - the path to be set as current working directory
Returns ​
ecode
(intValue) - has the value 0 if no errors occurred, a value different than 0 if an error occurred.
Details ​
A relative path relates to the previous working directory.
See Also ​
Examples ​
asc
CC "AdoScript" GET_CWD
SET oldCwd:(cwd)
CC "AdoScript" SET_CWD path:("c:\\temp")
CC "AdoScript" GET_CWD
CC "AdoScript" INFOBOX ("The old CWD is: '" + oldCwd + "'.\n" +
"The new CWD is: '" + cwd + "'.")
Sets a new cwd and displays the old and current working directory it in an infobox.
Versions and Changes ​
Available since ADOxx 1.3