home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
595.lha
/
TrashCompactor_v1.11
/
tc.doc
< prev
next >
Wrap
Text File
|
1991-12-07
|
2KB
|
45 lines
Trash Compactor Version 1.11
What is it?
Well, it goes through any directory passed to it by the CLI and deletes
all files that are older than a specified number of days. It traverses
the sub-directories recursively and deletes empty subdirs.
Why?
Well. If I put files in my trashcan, I almost always forget to empty
the trash. Now, this program gets executed everytime my computer boots
and deletes old files. Of course, if I want something to die instantly
I can still use the CLI or the Workbench's delete function or Empty
trash...
How to Use it...
The command line looks like this:
tc [-n] [Path1] [Path2] ... [Path10] [QUIET]
where:
n = maximum age of files (in days) before deletion occurs. The
maximum value is 28, the default is 5, and the minimum is 1.
Path# = Up to ten different directories to check for deletion.
These files don't _have_ to actually be trashcans. Any
directory will do. Just don't set it to C: or something
like that... 8)
QUIET is a switch that will suppress the program's output. Some
error messages will still get printed.
Notes:
It is imperative that the system date is set correctly. If its not then
you may find unexpected results. The program _can_ be interrupted with
a control-c if a wrong system date confuses the program.
The use of this program is at your own risk and I assume no responsibility
for any problems that occur.
Stephan