Let's start with dir
DIR attributes]]
sortorder]] timefield]]
Specifies the drive, directory, and/or files to list.
/A Displays files with specified attributes.
attributes D directory R read-only file
H hidden file A file ready for archiving
S system file - prefix meaning "not"
/B Uses bare format (no header information or summary).
/C Displays thousand separator in file sizes. This is the default. Use /-C to
disable separator display.
/D Same as wide but files are listed in columns.
/L Uses lowercase.
/N New long list format where filenames are on the far right.
/O Lists files in sorted order.
sortorder N by name (alphabetic) S by size (smallest first)
E by extension (alphabetic) D by date/time (oldest first)
G directories first - prefix to reverse order
/P Pauses after each screenful of information.
/Q Displays file owner.
/S Displays files in specified directory and all subdirectories.
/T Controls which time field to display or use for sorting.
timefield C creation time
A last access time
W last written time
/W Uses wide list format.
/X Displays short names generated for non 8dot3 filenames. The format is that of /N with the short name inserted before the long name. If there is no short name, blanks are displayed in its place.
/4 Uses four-digit year
Switches may be pre-set in the DIRCMD environment variable. To override pre-set switches, prefix with - (hyphen). For example, /-W.
DIR attributes]]
sortorder]] timefield]]
Specifies the drive, directory, and/or files to list.
/A Displays files with specified attributes.
attributes D directory R read-only file
H hidden file A file ready for archiving
S system file - prefix meaning "not"
/B Uses bare format (no header information or summary).
/C Displays thousand separator in file sizes. This is the default. Use /-C to
disable separator display.
/D Same as wide but files are listed in columns.
/L Uses lowercase.
/N New long list format where filenames are on the far right.
/O Lists files in sorted order.
sortorder N by name (alphabetic) S by size (smallest first)
E by extension (alphabetic) D by date/time (oldest first)
G directories first - prefix to reverse order
/P Pauses after each screenful of information.
/Q Displays file owner.
/S Displays files in specified directory and all subdirectories.
/T Controls which time field to display or use for sorting.
timefield C creation time
A last access time
W last written time
/W Uses wide list format.
/X Displays short names generated for non 8dot3 filenames. The format is that of /N with the short name inserted before the long name. If there is no short name, blanks are displayed in its place.
/4 Uses four-digit year
Switches may be pre-set in the DIRCMD environment variable. To override pre-set switches, prefix with - (hyphen). For example, /-W.


