ProvideX V8.20 > Language Reference > 2. Directives
61
CWDIR Directive
             Change Working Directory
Format
CWDIR new_dir$[,ERR=stmtref]
Where:
new_dir$
String expression. Name of the new directory in which you want to
work or run applications. Include a disk letter and colon ":" to change
to another drive.
stmtref
Program line number or label to transfer control to.
Description
Use the CWDIR directive to change from the current working directory to a new one.
If the specified directory name does not exist, ProvideX returns an Error #12:
File does not exist (or already exists).
See Also
LWD System Variable, p.563,
HWD System Variable, p.561
Examples
0010 CWDIR "C:\Program Files\"+C$+"Programs"
0020 RUN "SOMETHING"
0030 CWDIR HWD ! Return home