Qdir v1.36 A "dir" program Written by: Gregg Scholfield Copyright 1993 ALL RIGHTS RESERVED INTRODUCTION Qdir was written for those of us who use the CLI. Have you been frustrated with the random order of files when using the AmigaDOS LIST command? Or the nice orderly appearance of the DIR command but with no file statistics? I have, and that's why I wrote this program. Qdir is a directory file listing program that can replace both DIR and LIST AmigaDOS commands. The program lists files alphabetically like the AmigaDOS DIR command but displays ALL of the file and directory statistics like the LIST command. The result is a nice orderly list that's easy to read. It supports all of the AmigaDOS wildcards (#?.~) and syntax like normal AmigaDOS commands do. The bottom line also gives you statistics on how many files and directories were found; the bytecount of the files; FREE disk space available for the device you pointed to. The program was written in C to keep it compact and fast. It is PURE so you can use the RESIDENT command to load it into memory which will speed it up even more. It uses only 20k of RAM when made resident. Qdir requires AmigaDOS 2.0, Kickstart version 37 or higher to run. When you get the registered version of Qdir you will have the ability to configure the output listing to your own personal taste. COPYRIGHT Qdir is a shareware program and is copyrighted by the author, Gregg Scholfield, ALL RIGHTS RESERVED. This shareware version of the program may be freely distributed as long as this document file is distributed with the main program. This program is supplied "as is" with no warranty expressed or implied to its quality, performance or fitness for any particular purpose. The   entire risk as to the quality and performance of the software is with the user. In no event will the author be liable for direct, indirect, or incidental damages resulting from the use of this software. INSTALL To install Qdir you would simply copy the main program file into your c: directory. This will insure that the program is in your path and can be called from any sub-directory. USE Once installed you use Qdir as you would any AmigaDOS command: type its name on the CLI command line. There are some useful command line switches that make this program even more flexible. Switch Description ------ ----------- -? Display a help screen for command switches. -d Display a listing of directories only, no files. -f Display a listing of files only, no directories. -s * Enter the program setup mode. This allows you to configure Qdir to display the listing in a format of your own design. * This function is only available in the registered version. Use Qdir as if you were using the AmigaDOS DIR or LIST commands. For example: qdir lists ALL files and directories in the "current" directory. qdir -f lists ALL files in the "current" directory. qdir ram: lists ALL files and directories in the RAM: device. qdir df0:#?.info lists ALL icon (.info) files in the root directory of df0: qdir dh0: -d lists ALL directories in the root directory of dh0:. SETUP MODE (registered users only) When Qdir is in the setup mode, several parameters can be changed by you. These changes are saved in a configuration file in your sys:s   directory. Once the configuration file is saved, Qdir will use it to format the output listing. qdir -s enters the setup mode. During setup mode you will be asked some questions, which are shown below. You answer these by pressing one of the keys shown in parenthesis (). The program automatically goes on to the next one until you are finished or you have pressed "A" which aborts the setup operation and makes NO changes to the existing configuration file. Listing Options ======== =============================================== SIZE > (R)emove (B)yte bloc(K)? (A)bort PROTECT > (R)emove (K)eep? (A)bort DATE > (R)emove (K)eep? (A)bort TIME > (R)emove (1)2hr (2)4hr? (A)bort DISPLAY > (Number of display lines, 00=NO limit)? (A)bort COMMENT > (R)emove (K)eep? (A)bort Key to Options ============== (R)emove Remove this item from the output listing. (K)eep Keep this item in the output listing. (A)bort Quit setup mode immediately, don't save changes. (B)yte Display file size in bytes. bloc(K) Display file size in AmigaDOS blocks. (1)2hr Display time stamp in 12 hour format, ie: 2:35p (2)4hr Display time stamp in 24 hour format, ie: 14:35:47 (Number of..) Display this many lines before pausing the screen and asking the user to: Q = Quit or "press any other key to continue". The useful range is between 10 lines to 99 lines, or 00 for NO pause. REGISTER To register Qdir, send $5 US to: Gregg Scholfield PO Box 20481 Carson City, NV 89721 I will respond by sending you a diskette containing the latest version of Qdir, fully operational. Orders from outside United States please send $8 US. FEEDBACK I welcome any comments and criticism you may wish to offer.   Enhancements in future releases will depend on your comments and wish lists. FUTURE ENHANCEMENTS One user has asked me to include "recursion" as a command line option. This would list the current directory and all files/directories within any sub-directories of the current directory. I am working on this now.