home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR4
/
TIR104.ZIP
/
TIR.DOC
< prev
Wrap
Text File
|
1993-09-30
|
5KB
|
107 lines
│ Triple Directory │ Triple Directory │ Triple Directory │
V1.04 by Dave Reynolds
internet - dave.reynolds@canrem.com
CRS - in conf 315 chit_chat
FREE WARE!!! PAST IT AROUND, JUST DON'T ALTER IT PLEASE!!!
v1.03 - adds drive letter
- moves ALL subdirectories to the TOP
of the listing
- fixes extensions with less than 3 letters
- adds free bytes on drive
- counts DIR's and Files seperatly (UNLESS /N IS USED!)
v1.04 - fixes bug when there is only 1 file in a dir.
- fixes bug when there are no dirs in base dir.
- adds other drive listings eg. C:> TIR B:\*.* [enter]
will show you the files and free size of the disk in
drive b:. Then return you to the current directory.
This simple program is intended to supliment the Dos DIR command
not (at this point anyway) replace it. I found that working with the
Dos DIR often gives you information that you don't really care about
eg. the time. I almost never look at the time or date. I started to
use the WIDE switch with DIR. Now you don't even get the file size!
In answer to my own needs I worte this little program to display
my directorys three wide WITH the filesize. Also Dos DIR would only
pause if you told it to, so if a directory had tons-o-files you had to
do a DIR command twice. Once to find out you couldn't read them all
and the second to add a /P or /W switch. Humm.
TIR will pause after 24 lines of display by default. If you need to
have it zip by for some reason the /P switch will turn OFF pause.
Having the files sorted by Name is nice to. So thats the default. If
you want No sort then add the /N switch. Text (name/etx) sorts are in
assending alphabetical order. ie. abc. File size sorts are decending.
Meaning largest to smallest.
Then I though "it would be nice to see all the files on the disk" not
not just the "normal" files. But how to display the attributes without
putting all kinds of letters and junk on the screen? COLOR! Each attribute
or combination of attributes has it's own color code. To see the codes
type TIR /C and there you are.
To install just copy it to your utils directory or any other directory
in your DOS PATH. See your Dos manual if you need help with that.
Switches can be combined and a filemask can be added. The one thing to
remember is the switches MUST come AFTER the filemask on the command
line. AND the file mask must have an extention. A* will not work, but
A*.* will. I'm working on that one, but I'm also trying to keep the size
of the file down to a minimum.
examples: (for a list of all switches type TIR /?)
TIR normal 3 column display of ALL files with pause ON
TIR /N normal 3 column display of ALL files. Pause is ON.
Sort by name is OFF.
TIR /S single column display of ALL files with pause ON
TIR *.ZIP /D double column display of ONLY the files with .ZIP extention
pause is ON
TIR A*.* /P 3 column display of all files that start with 'A' the
pause is OFF
TIR /C will bring up the COLOR CODES.
TIR /E 3 column display sorted by Extention.
TIR A*.* /D /E All files begining with 'A' sorted by their Extention in
double columns.
PROBLEMS! TIR wont handle more that 500 files... I guess it could..
but I'm not sure how big I can go with arrays on my compiler.
Learing all the time....
TIR cant handle T* type masks. They must have the '.'
and an extension.
TIR must have a full path for other drive listings. EG.
TIR B: - WILL NOT WORK
TIR B:\*.* - WILL WORK!!!
TIR D:\ZIPS - NOPE!
TIR D:\ZIPS\*.* - NOW YOUR GETTING THE IDEA!
This is all due to the fact that there are millions of
combinations, and as of yet I havn't found an easy and short
way of doing this. To much checking and the program will get
huge. Try different things. TIR will simply say...
No Match Found for d:\zips\a* of coarse TIR d:\zips\a*.*
would work though...
STANDARD DISCLAIMER....
NOTHING HERE WILL WORK ON ALL MACHINES OR AT ALL TIMES
OR IN ALL WEATHER OR WHEN ITS DAYLIGHT OR WHEN IT'S DARK.
IN OTHER WORDS USE AT YOUR OWN RISK. NOT THAT I THINK IT WOULD
BUT IF SOMETHING BLOWS UP BECAUSE YOU USED THIS PROGRAM
DONT COME CRYING TO ME.