home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR4
/
TIR108.ZIP
/
TIR.DOC
< prev
Wrap
Text File
|
1993-10-18
|
5KB
|
114 lines
WHAT?------------------------------------------------------------------------
╒═══════════╤═══════════╤═══════════╕
│ Tirectory │ Tirectory │ Tirectory │
╘═══════════╧═══════════╧═══════════╛
The Triple Directory Listing
V1.08 by Dave Reynolds
internet - dave.reynolds@canrem.com
CRS - in conference 315 chit_chat
FREE WARE!!! PAST IT AROUND, JUST DON'T ALTER IT PLEASE!!!
HOW?-------------------------------------------------------------------------
/? or /H - Displays a reminder screen of the switches.
/C - Display color codes. Brings up example colors showing you
what each color means.
/P - Turns OFF the automatic pause.
/S - Makes a single column list.
/D - Makes a double column list.
/N - NO sort. This is handy if you want to see the files in their
original order.
/E - Extension sort. Files are sorted by the .[whatever]
/Z - siZe sort. Largest to smallest file sizes.
/X - Displays eXecutables only. (.EXE .COM .SYS)
/O[ext] - Omit extension. NO "." should be added just /OEXT I thought of
this while looking at my Mahjong directory. Instead of trying to
list the exe's or com's I thought why not just Omit the TIL's.
So now I just TIR /OTIL and I get a list of everything but the
.til files.
EXAMPLE----------------------------------------------------------------------
C:\> TIR D:\Zips\a* /d /p /otxt
This command would list all the files in the ZIPS directory on the
drive D: that start with A in a Double column with no Pause AND Omit
any files that have a .TXT extension.
WHY?-------------------------------------------------------------------------
This simple program is intended to supplement 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. But with that you don't even get the file size!
In answer to my own needs I wrote this little program to display my
directories 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 that's the default. If
you want No sort then add the /N switch. Text (name/ext) sorts are in
ascending alphabetical order. ie. abc. File size sorts are descending.
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 file mask can be added. The one thing to
remember is the switches MUST come AFTER the file mask on the command line.
Your file mask and path can be any valid DOS DIR path and mask. So if
your in C:\DOS> you can do a TIR D:\ZIPS or any other drive or directory.
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.
Learning all the time....
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
DON'T COME CRYING TO ME.
REVISIONS--------------------------------------------------------------------
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.
v1.05 - fixes up the paths when calling TIR 's on other drives.
eg. C:> TIR B: and C:> TIR D:\ZIPS now works.
- adds a bit more color to the display
v1.06 - fixes incomplete file masks A* will now work.
v1.07 - adds Omit (/O) option TIR /ODOC will skip all files
with the extension .DOC
v1.08 - adds the eXecutables only (/X) option.
- adds more graphics.
THE END----------------------------------------------------------------------