|Table Of Contents||Index|
D is Marc Perkel's sweet little directory program. It allows you to quickly and easily list your directory in a variety of different ways.
Usage: D [path\mask, (path\mask ...)] /E/D/S/U/B/I/R/A/L/W/O/P/F/+/-/1/2/3/4/5/6The order of a normal sort is subdirectories first, followed by hidden and system files, followed by an alphabetical list of files. The subdirectories, hidden and system files are displayed in lower case. Files with hidden, system, or read-only attributes have an * (asterisk) next to them.
/E Sort by Ext /D Sort by Date /S Sort by Size /U Unsorted /B Sort Backwards /I Identify Directory /R Programs that can Run /A Files with Archive Set /L Long Display, no Pause /W Wait for Keypress at End /O Use Standard Output Device /P Output to Printer /+DATE Files after Date /-DATE Files before Date /F File Names Only
/1/2/3/4/5/6 Controls Number of Columns and Information Displayed
The display is a vertically sorted display with the width automatically adjusting by the number of files. The page-break is automatically adjusted for output to different devices.
Default options are sort by name, 4 columns, direct video with color.
The /R option shows files that can run. (EXE, COM, BAT)
The /6 give you a 6 column display of names only. /5 shows just names with an "*" (asterisk) next to the read-only, system, and hidden files. /4 shows names and file size in Kilobytes. /3 shows names and file size in bytes. /2 shows file size in bytes and date and time. /1 shows all of the above including file attributes.
The /I option will cause the directory name to be displayed at the top of the display:
*-*>> Directory of: C:\TURBO5\*.COMThe /O option sends output to the standard output handle instead of directly to screen memory. You would use this option if you are running this program over a modem, or if you're using a color card with a composite monitor. The /O option strips all color.
Output redirection is automatically detected and output is sent to the DOS standard output handle, (/O) and no pause, (/L) is automatically selected. Using /O will allow this program to work correctly over a modem.
Default options can be set using the Environment Strings. SET D.EXE=/O/I selects Standard Output and Identify Directory.
This program will handle up to 16000 files in a single directory. More than one filespec can be specified.
D *.PAS *.INCwill list all the files that end with the extension of either .PAS or .INC.
D does not have a multiple subdirectory mode. You can get the same effect as if it did using DoList and Whereis. Suppose you want a list of everything on your hard disk.
WHEREIS/T|DOLIST D @L /I/1 >DIRLISTWhereis/T lists all subdirectories on the current drive. This list is piped into DoList which executes D on each of the directories. Output is sent to DIRLIST, a text file, for later printing or editing.
|Table Of Contents||Index|