CD

Description

Change the current directory on the current drive.

Syntax

CD {[drive:]\directory\...}

Examples

  • Change to the directory SAG on the current drive:

    CD \SAG
  • Change to the directory which is determined by the contents of the variables #FILEDRIVE and #FILEPATH:

    CD #FILEDRIVE ':' #FILEPATH
  • Change to the directory SAG\PCC on the current drive:

    CD \SAG\PCC

Variables Returned

#RC (SUCCESS if CD was successful. FAILURE if CD was not successful.)

Related Commands

CHDRIVE, MD, RD

Usage

Procedure File: Yes
Command Line: Yes
Key: No
API: No