Ld - List Directory v1.2.1 Original Author Dave Haynie Modified and Enchance by Andry Rachmat Dated November 27, 1986 This new version of Ld is pretty much the same, feel the same and work the same, as the old version (v1.2.0), except for fews wrinkles that I put. Ld works like the "Dir" command, except Ld show the directory in color and in 4 columns. Here is the new usage: Ld [-[a][f][d][s/u]] [dirname] '-' signifies a flag, the order doesn't matter. 'a' : show directory and ALL of its' subdirectory. 'f' : show the file only in the directory. 'd' : show the subdirectory only in the directory. 's/u' : show sorted or unsorted directory. Two files are supply here, 'Ld' has sorted as a default, and 'Ld.un' has unsorted as a default. Suit your taste. [dirname] is the directory you want, default is current directory. '?' : will show the usage, just in case. Is that all? No, off course not. Ld also except the directory name which has a imbedded space, just specified the dirname in QUOTE. Execution speed is the same as the old Ld and the same as Dir command. Long file name won't be truncated now, so you may have only two or three columns output in one row. C will abort the program. The listing will pause after 20 lines, press to continue, or "q" to abort. Output redirection is always supported by the DOS. Example: Ld -> show current dir Ld ? -> show usage Ld df1: -> show dir of df1: Ld -f -> show current dir, file only Ld -d df0: -u -> show dir of df0:, dir only unsorted Ld -auf ANY -> show dir of ANY and its' subdir, file only, unsorted Ld "This Dir" -> show the dir of This Dir Ld > ram:test dh0: -> output the dir of dh0: to ram:test file. Last but not least, Ld is runnable from WorkBench! For Workbench oriented people, here a tool that will able you to see what are behind those drawer/disk. To run it just double click the Ld icon, and it will tell you how. Here is how to do it: Click the Ld icon ONCE, hold the key, and DOUBLE click any DRAWER or DISK type icon. or vice versa, i.e, click the DRAWER or DISK type icon once, hold the key, and DOUBLE click the Ld icon. Parameters passing are also supported from the WorkBench, by "Tool Type" argument. To set the parameter(a-all, f-file, d-dir, s/u-sorted/unsorted): Click the Ld icon ONCE, select the INFO menu from the WORKBENCH MENU. It will give you the icon information. You will see "Ld", "Tools", "Comment", and just below the comment there is a TOOL TYPES. On that line you see the small up/down gadget, long space, ADD gadget, and DEL gadget. Click the ADD ONCE, then click on the long Space ONCE, now you will see a prompt (orange on default color), now just type in the parameter(s) you want from the keyboard, such as 'a' or 'uf' etc. Press return, and click on SAVE down on the bottom. You all set, the next time you call Ld, it will show what you want. Happy Lding... So far so good, if you find any bugs, or have any comments or suggestions I can be reach at: P-LINK - OJS180 or addressed to: Andry Rachmat 10715 Roosevelt NE #7 Seattle, WA 98125 This is a SHAREWARE, so feel free to copy and put it on any BBS. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If you want to, you can send any donation to the above address, If you are interested in the source code (Aztec), you can send a request to the address above also. Enjoy... Andry Rachmat 112786/120786