DIR List directory --- ---- --------- DIR [options] directory-spec [other dir-spec] e.g., DIR >STUFF.DIR -elp LB:[1,1] SY:[305,100] or DIR DIR *.C DIR SOR ,etc. or DIR [1,2]*.HLP Normally files are listed in alphabetical order, in 4 columns. Its options are: -1 Print in 1 column format -d Don't sort. -e Sort by extent, then name. -l Print in long format -p Include protection in -l format -t Include totals in -l format -v Include version numbers Only the highest version is shown unless -v or -d is specified. Following the device/UIC, you may also give a file-name selector. (This works just like the /SE switch in SRD). This allows file names to selected based on a sub-set string match. The selection is satisfied if the end of the selector field is reached without finding a character that does not match. The filename is considered to be a string of 1 to 13 characters: 0 to 12 characters of name, a period, and 0 to 3 characters of type, and semi-colon. The selector is automatically terminated with the string: "*;". The filename and the specified template are compared one character at a time, until the semicolons in each match. A semicolon may be explicitly given as part of the selector; this will be used as the termination point. If the current template character is a "%" or "?", it will match exactly one character of the filename. If the current template character is "*", it will match 0 or more characters in the filename. More than one "*" in a row is treated as only one. For example: DIR M* or DIR M This selects all files with "M" as the first character in the name regardless of the rest of the name. DIR M???X.* This selects any file with a name starting with "M" having any characters in 2nd, 3rd and 4th position, X in 5th position. DIR *SRD* This selects all files having "SRD" anywhere in the filename, such as : SRD.MAC, SRDATA.MAC, TKBSRD.CMD, ABCC.SRD, etc. DIR *.C Will select ?.C, ?.CMD, ?.CDE, etc. DIR *.C; Will select ?.C files, but not ?.CMD, etc.