command/DIRECTORY command/DIRECTORY NAME DIRECTORY -- Displays a disk directory ABBREVIATION di <shift> R SYNOPSIS DIRECTORY [D<drive>][,U<unit>][,"<file>"] FUNCTION Displays a disk directory on the screen. Use <ctrl>-S to pause the display (any other key restarts the display after a pause). Use the C= key (the Commodore key) to slow it down. INPUTS <drive> - drive number <unit> - drive unit number <file> - file name and/or pattern RESULT Lists all files or files matching the given pattern. EXAMPLES DIRECTORY List all files on the disk. DIRECTORY D1, U9, "WORK" Lists the file on disk drive unit 9 (8 is default), drive 1, named WORK. DIRECTORY "AB" Lists all files starting with the letters "AB", like ABOVE, ABOARD, etc. DIRECTORY D0, "FILE ?.BAK" The ? is a wild-card that matches any single character in that position: FILE 1.BAK, FILE 2.BAK, FILE 3.BAK all match the string. NOTES The DIRECTORY command cannot be used to print a hard copy. You must load the disk directory (destroying the program currently in memory) to do that. To print out the DIRECTORY of drive 0, unit 8, use the following: LOAD"$0",8 OPEN4,4:CMD4:LIST PRINT#4:CLOSE4 BUGS None SEE ALSO None