Directives
CWDIR 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 statement label to which to transfer control.
 
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,
HWD System Variable
 
Examples 0010 CWDIR "C:\"+C$+"PROGS"
0020 RUN "SOMETHING"
0030 CWDIR HWD ! Return home