home *** CD-ROM | disk | FTP | other *** search
- DLF -- Dave's List Files (c) 1991 Bit Bucket Software
-
- * * Beta Version 0.7 -- This file is preliminary documentation * *
-
- DLF is a simple directory lister, showing the files in a directory grouped
- by extension, and sorted by file name. It supports several output formats,
- controlled by command line switches. I wrote it to replace a program
- called LF.COM that I liked but that didn't accept path names and got
- confused on directories with a large number of files. I've given DLF some
- extra options and more of a 4DOS-style command line flavor.
-
- The syntax for DLF is
-
- Usage: DLF [/switches] [pathname] [/switches] [pathname] ...
-
- Pathnames are processed to append *.* or \*.*; future versions of the
- program may support use of file wildcards. The pathname can be any valid
- drive or diretory; however, no checking is performed. There are two output
- modes, showing files only or files with abbreviated sizes. A third mode is
- partially implemented, showing files with abbreviated sizes one per line;
- my intent is to add display of 4DOS file descriptions to this mode. The
- default mode appears as follows:
-
- DLF (0.7) listing of c:\powerc2\dlf\*.*
- .BAT files: check 10b │
- .BTM files: make 115b │ new_dlf 333b │
- .C files: ansisys 12K │ cdir 739b │ dlf_main 14K │ dlf_out 6K
- dlf_use 2K │
- .DOC files: dlf 4K │
- .ERR files: c 149b │
- .EXE files: dlf 17K │ dlf_main 17K │
- .H files: dlf 673b │
- .HXT files: dlf 2K │
- .MAP files: dlf_main 15K │
- .MIX files: dlf 7K │ dlf_main 6K │ dlf_out 5K │ dlf_use 4K
- .PRJ files: dlf 237b │
- .TRC files: dlf_main 10K │ dlf_out 121b │ dlf_use 110b │
- Total of 23 file(s), 120429 bytes
-
- Switches can be any of:
-
- ? -- print a usage message (also h)
-
- d -- DLF format, show files and abbreviated sizes, 4 per line (default)
- l -- LF format, show files only, no sizes, 6 per line
- 4 -- 4DOS format, show files, abbreviated sizes, 1 per line
-
- n -- Normal mode, turn Break and Emphasized off (default)
- b -- Break mode, print a blank line between file types
- e -- Emphasized mode, print a horizontal line between file types
-
- a -- Show all files (default)
- x -- Show only executable files (COM, EXE, BAT, BTM)
-
- Switches are case insensitive, and affect the display of the pathnames
- specified after the switch (that is, parameters are processed in order).
- Note that the switches L, D and, 4 are mutually exclusive, as are the
- switches B, E, and N, and the switches A and X. An environment variable
- named DLF_OPT can be used to alter the defaults. For example, adding
-
- SET DLF_OPT=4e
-
- would cause DLF to default to the 1-file-per-line output format, with
- horizontal lines between different file types (extensions). The
- environment variable is processed after the internal defaults are set but
- before the command line is processed, so command line switches still take
- precedence. Note that none of the switches are toggles, so the meaning of
- any particular switch value is always unambiguous.
-
- Abbreviated files sizes are reported in (b)ypes, (K)ilobytes, or (M)egabytes
- Sizes are adjusted up to the nearest whole K or M, if appropriate. K's and
- M's are binary, not decimal (1K = 1024 bytes). The summary total of file
- sizes is total bytes of data, not total bytes of disk space used.
-
- DLF writes to the standard output, so its output can be redirected and
- piped.
-
- DLF is written in C and was compiled with the Mix PowerC compiler, v2.0.0.
- It should work fine if processed with PKLITE, DIET, or similar programs.
-
- Comments, bug reports, and suggestions on this program are welcome --
- please send them to me in the C programming message area of The Programmer's
- Corner BBS of Columbia, MD. Phone numbers for TPC are:
-
-
- (301) 596-1180 and (301) 995-3744
-
-
- Dave Lemire
- Bit Bucket Software
- Columbia, MD
- 1/28/91
-