in german/auf Deutsch


SET DirCmd

DIRCMD specifies a default parameter used by the Dir command in the OS/2 shell.

SET DIRCMD=parameters

Parameters:

  • /A[AHRS]

    Shows only files with the specific attribute. Add a minus sign (minus) in front of the letter to show files WITHOUT the specific attribute. You can use any combination of the attributes. The /A parameter alone calls for display of all attributes. For example you want to display only files with the archive and read only attribute set, then use this parameter /AAR.

    • A
      Archive attribute

    • H
      Hidden attribute

    • R
      Read only attribute

    • S
      System attribute

  • /B

    Don't show the heading and summary information.

  • /F

    Show files with full path but without date, time and size.

  • /L

    Displays all information in lowercase.

  • /N

    List files on FAT drives in the same manner as on HPFS drives (i.e. date, time, size, EA size, name)

  • /O:

    Displays files sorted by following criteria. You can use any logical combination of sort attributes. Standard is /O:GN.

    • G Directories first

    • -G Directories last

    • N Sorted by filename alphabetically

    • -N Sorted by filename in reverse alphabetical order

    • E Sorted by file extension alphabetically

    • -E Sorted by file extension in reverse alphabetical order

    • D Sorted by date from oldest to newest

    • -D Sorted by date from newest to oldest

    • S Sorted by size from smallest to biggest

    • -S Sorted by size from biggest to smallest

  • /P

    Pauses after each full screen of information and waits for a keystroke.

  • /R

    Displays long names on FAT drives if available.

  • /S

    Recursive search and displays all sub-directories.

  • /W

    Displays only file names. No other information.

See the example below.

To set the default for the Dir command to show the output sorted by file name, list the directories first, and pause after each full screen of display, add this line to your config.sys file:

SET DIRCMD=/O:GN/P


Platform Support:
OS/2 2.x OS/2 3.0 OS/2 4.0
Yes Yes Yes


OS/2 Shell Settings
SET Statements
  <<< Previous
Config.sys Home
Next >>>  


Last modified 1 Aug 1999 by Joerg Sievers at jogi@warpsite.de. - This page can be found from http://www.warpsite.de/en/csdp/SET_DirCmd.htm
Copyright © 1998-2000 Oliver Poggensee, © 2000 Joerg Sievers