Command: dirs

  DIRS displays the contents of the directory stack.

Syntax:

  DIRS [/?]

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

Options:

  /?  Shows the help.

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

Comments:

  DIRS displays the content of the directory stack which is filled up
  by PUSHD and emptied by POPD.
  DIRS 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:

this command            changes the current directory to / shows:
============            =========================================
cd c:\fdos\bin          c:\fdos\bin
pushd c:\games          c:\games      (and stores c:\fdos\bin)
pushd c:\utils          c:\utils      (and stores c:\games)
pushd c:\packages       c:\packages   (and stores c:\utils
dirs                    shows the directories stored by pushd:
                          0001=c:\fdos\bin
                          0002=c:\games
                          0003=c:\utils
popd                    c:\utils      (and removes c:\utils (0003)
                                      from directory stack)
popd                    c:\games      (and removes c:\games (0002)
                                      from directory stack)
popd                    c:\fdos\bin   (and removes c:\fdos\bin (0001)
                                      from directory stack)
popd                    shows the message: 
                          "Directory stack empty"

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

See also:

  cd
  chdir
  pushd
  popd

[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 © 2003 Robert Platt, updated 2007 by W. Spiegl.

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