Command: cdd

CDD displays the name of or changes the current directory and drive.


  CDD [drive ':'][path]
  CDD '-'
  CDD [..][/?]
      drive   The drive letter, e.g. C:
      path    The directory, e.g. \example\


  ..  Specifies that you want to change to the parent directory.
  -   If "last directory" feature is enabled, change to last directory.
  /?  Shows the help.


  The behaviour of CDD is similiar to the CD / CHDIR command, but it
  always changes both the currently selected drive and the current
  directory, thus, it changes the current working directory.
  If drive: is specified, the current working drive is changed; this
  is the only difference with "CD / CHDIR".
  Type CDD without parameters to display the current drive and directory.
  CDD is a command internal to and needs no other file
  in order to work.


    cdd C:\FREEDOS  changes to the directory C:\FREEDOS
    cdd ..          changes back from C:\FREEDOS to C:\
    cdd \           changes back from C:\anydirectory\anysubdirectory
                    to C:\
  if you are at C\:
    cdd FREEDOS     changes to the directory C:\FREEDOS
    cdd BIN         changes to the directory C:\FREEDOS\BIN
    cdd D:\EXAMPLE  changes the directory on D: to D:\EXAMPLE, AND
                    changes the drive letter to drive D:

See also:


  Copyright © 2004 Robert Platt, updated 2011 and 2022 by W. Spiegl.

  This file is derived from the FreeDOS Spec Command HOWTO.
  See the file H2Cpying for copying conditions.