Command: chdir

  CHDIR displays the name of or changes the current directory.

Syntax:

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

[Main menu] [top] (Syntax) [Options] [Comments] [Examples] [See also] [File]

Options:

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

[Main menu] [top] [Syntax] (Options) [Comments] [Examples] [See also] [File]

Comments:

  Type CHDIR drive: to display the current directory in the specified 
  drive.
  Type CHDIR without parameters to display the current drive and 
  directory.
  If no drive is specified, then the current drive is assumed. 
  If no path is specified, the current directory is displayed.
  You can also use CD instead of CHDIR.
  CHDIR is a command internal to command.com and needs no other file
  in order to work.

[Main menu] [top] [Syntax] [Options] (Comments) [Examples] [See also] [File]

Examples:

    chdir c:\fdos     changes to the directory c:\fdos
    chdir ..          changes back from c:\fdos to c:\
    chdir \           changes back from c:\anydirectory\anysubdirectory
                      to c:\
  if you are at c:\ :
    chdir fdos        changes to the directory c:\fdos
    chdir bin         changes to the directory c:\fdos\bin
    chdir d:\example  changes the directory on d: to d:\example, 
                      but does NOT change to drive d:

[Main menu] [top] [Syntax] [Options] [Comments] (Examples) [See also] [File]

See also:

  cd
  cdd
  md
  mkdir
  rd
  rmdir

[Main menu] [top] [Syntax] [Options] [Comments] [Examples] (See also) [File]

File:

  Please read this command's lsm file also.
  You will find the updated version (internet) here and
  the version described in this manual page here.
  The lsm file contains information about the name of the programmer,
  the download site, and some other command related information.

[Main menu] [top] [Syntax] [Options] [Comments] [Examples] [See also] (File)


  Copyright © 1998 Jim Hall, updated 2007 by W. Spiegl.

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