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.

Not all operating systems support multiple directories in the same manner. Centralize multiple directory support in one application program to optimize portability. See the PREFIX verb for additional information.

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

See Also

Data Server Syntax

Verbs - Alphabetical Listing