CHDIR Verb - Change Directory
Syntax
CHDIR string{,ERR=lineref}
Description
The CHDIR verb changes the current working directory.
Parameter |
Description |
---|---|
string |
Location of the new working directory. If the directory cannot be located, PRO/5 uses the optional ERR= branch and does not change the current directory. |
ERR=lineref |
Branch to be taken if an error occurs during execution. |
Verbs are also provided for creation and deletion of directories. See the
MKDIR and RMDIR
verbs for additional information.
Note:
CHDIR will only set the working directory on the current drive. Including a drive designation to the CHDIR will not cause BBx to change the current drive. To change the current drive, use the SETDRIVE verb.
Examples
>CHDIR "C:/BASIS/VPRO5/DATA/"
1000 CHDIR "/BASIS/VPRO5/DATA/",ERR=9500