DIRCMD

From EDM2
Jump to: navigation, search

DIRCMD specifies a default parameter used by the internal command DIR of the command processor CMD.

SET DIRCMD=<parameters>
Example
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

Parameters

/A[AHRS]
Shows only files with the specific attribute. Add a minus sign (-) 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 /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 systems if available.
/S
Recursive search and displays all sub-directories.
/W
Displays only file names. No other information.