chdir (cd) - system command
Syntax
chdir [/D] [<drive>:]<path>
or
chdir [..]
or
cd [/D] [<drive>:]<path>
or
cd [..]
Meaning
Make the indicated directory active, or display the name of the currently active directory. This function can only be used in ADAPL as the parameter in a SYSTEM command.
.. indicates the directory above the currently active one.
Type cd <drive>: to display the active directory on the relevant drive. Typ just cd without parameters, to display the active drive and directory.
Use /D if you want to change both the active drive and the active directory.
Parameters between [ and ] are optional, and parameters between < and > must be replaced by an actual value. Do not include any of these brackets in your command.
Examples
stat = SYSTEM('chdir /D "C:\my docs\"')
stat = SYSTEM('chdir /D C:\printed_docs\')