The DIRECTORY program provides the user with the ability to sort and display the directory of a RT-11 disk (or DECtape). It is much like the PIP /L switch, but is more flexible. DIRECTORY will display for the user a list of all files on the specified device which match the input file specifications. Furthermore, it will sort the directory alphabetically by file name, alphabetically be extension, coronologically by date, in order of increasing size, or the reverse of any of these. In addition, files whose date is either before or after a specified date can be excluded from the directory. After running DIRECTORY (which responds with an *), the user enters a standard RT-11 command line which includes an optional output file specification (TT: will be used by default) where the user wishes the directory to appear, and up to six input file specifications (which may include *'s for wildcard file names or extensions), and one or more switches to control the nature of the directory sort. All files matching any of the input files specification (as modified by the swtiches) will be included in the directory listing. The output may be directed to any normal RT-11 terminal, line printer, or any file structured device. After completing a command line, DIRECTORY will print an *, indicating that it is ready to accept another command line. Terminate the program by typing CTRL/C. The switches recognized by DIRECTORY are as follows: /B Include the starting block address (in decimal) for each file. /C:N Format the directory listing into N columns on the output device. /E Include all empty spaces on the device in the directory in addition to any files. /Q Do not include the files' date or size in the directory listing. /L List all files on the specified device meeting one or more of the input file specifications, sorted according to the switch specification given (if any). This is the default condition. /M List only the unused spaces on the device. Regardless of any other file specification or switch, only the unused blocks on the specified device will be listed, and they will always be listed in the order in which they appear on that device. /V Include DIRECTORY'S version number in the header of the directory. /F Print the number of free blocks on the specified device. Any other input file specification and any other switches in the command line are ignored. /S:ARG The order in which the directory of file names matching the input file specification can be specified by including the /S switch with one of the following arguments: "NAM" will cause the directory to sorted by fle name (this is the default); "EXT" by file name extension, "DAT" by file date; "SIZ" by the size (number of blocks) of the files; "POS" by position on the device (a directory by POS would be in the same order as a PIP /L directory). /S:REV A second /S switch (or a second argument to the first /S switch) can be used to specify that the directory is to be in reverse order (that is, Z through A, rather than A through Z). /D The /D switch is used to specify a date. Only files dated after the specified date will be included in the directory. Three arguments should be specified with the /D switch, one for date, one for month, and one for year. The /D would normally be followed by an exclamation mark and a day of the month, followed by a colon and a three character month, followed by an exclamation mark and a year. Note that the numbers representing the day and the year would be interpreted as octal if they were preceeded by a colon and that the three character month representation must be preceeded by a colon. If no arguments are specified, with the /D switch todays date is used. The arguments may be given in any order. /D:BEF If a second /D switch is included in the command line (or a fourth argument to a single /D switch) only files dated before the specified date (rather that after it) will be included in the directory. All dates are inclusive of the specified day. /H This switch provides a listing of the DIRECTORY switches and defaults on the console terminal. All other file specification and switches are ignored. With the exception of the /H, /F, and /M switches all other switches may be combined in any logical manner. If no switches are specified, the default is /L + /S:NAM. If no file name is specified, the default is "*.*". Thus, a simple carriage return will produce a directory of all files on device DK0: sorted alphabetically by file name and will include the date and size of each file. If the directory output is directed to a file structure device, the default file name is DIRECT.DIR. Each command line may specify only one input device. The directory produced will always be for the device associated with the first input file specification, any other input device specifications on the line will be ignored. By default, the input device is DK0:. \test 80,