Examples

The following examples use the settings for HOME and CDPATH shown above.

  1. cdx

    Go to the c:\u\brian (HOME) directory.

  2. cdx a:

    Go to the current directory on the A drive.

  3. cdx d:/tmp

    Go to the \tmp directory on the D drive.

  4. cdx include

    Go to the include directory within the current directory. If it doesn't exist, then use the list of directoies in CDPATH and go to the first of the following directories that exists:

     
    c:\u\brian\include
    c:\Program Files\include
    e:\watcom\include