Name: CHDIR Shortest: CD
Family: Command Category: OS Specific
Description: Use the CHDIR command to display or change the current directory.

Syntax

CHDIR syntax diagram

Options

d:
Specifies a valid drive letter.

pathname
Specifies one or more directory names that lead from the root directory to a specified directory.

About the CHDIR Command

R:BASE assumes you want to work in the current directory and drive. To display the current drive and directory, enter CHDIR without a path.

CHDIR is similar to the CHDIR command in the operating system; however, the R:BASE CHDIR command requires a space between the command and the directory. For more information about the CHDIR command, refer to your operating system manual.

Examples

The following command lines change the current directory to the SALEDEPT directory on drive C:.

CHDRV c:
CHDIR /saledept

The following command moves up one directory level and makes that directory the current directory.

CHDIR ..