The CHDIR function allows the current working directory, as seen by the process environment, to be changed.
Command Syntax
CHDIR (expression)
Syntax Elements
The expression should evaluate to a valid path name within the file system. The function returns a Boolean TRUE result if the CHDIR succeeded and a Boolean FALSE result if it failed.
Example
IF CHDIR ("/usr/jBASIC/src") THEN
CRT "jBASE development system INSTALLED"
END
IF GETENV("JBASICGLOBALDIR", jgdir) THEN
IF CHDIR (jgdir:"\config") ELSE
CRT "jBASE configuration cannot be found."
ABORT
END
END
0 comments:
Post a Comment