PURGE.NLM ------------- Program PURGE periodicaly scans the file server for salvageable files and purges them. Syntax: LOAD PURGE [/P] [/L] [/S | /U] [/O] {}* Where: P ... only this directory & its subdirs will be purged. Path must include volume name. S ... starting hour of purging <0..24). Default is 20. U ... purge will be done immediately and module then quits L ... maximal size of log file. Default is 200000. O ... age of file in days (>=0) to be purged. Default is 7. {}* ... list of file extension masks to purge. Default is '*' (meaning *.* will be purged). There must be used at least one parameter. Zero length files are purged immediately. !-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-! WARNING: Parameter /O and file masks make non-exclusive OR !!! So '/o7 *' (== '/o7', as * is default) will purge all files now ! You MUST specify some extension to avoid it ! !-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-!-! Example: LOAD PURGE /S22 /O7 TMP BAK Purge.nlm starts its scan at 10pm and all files with zero length, extensions TMP or BAK or beeing deleted seven days ago will be purged. Program schedules itself as low priority task, but I do not recommend to start it in production time or with backup utilities. Program creates log-file SYS:SYSTEM\PURGE.LOG into which important events are logged. Names of purged off files are not logged. At start of each purging cycle, log size is tested on size. If configured size is exceeded, log is renamed to PURGE.OLD and new PURGE.LOG is opened. Old PURGE.OLD is deleted. On every start does program one scan on all volumes and then go asleep until next day. ----------------------------------------------------------------- Notes: - PURGE is cardware. See file LICENSE for conditions. History: v1.00a: 0-length files purged immediately v1.00b: path length tested v1.01 : start path parameter 980306 v1.02 : info changed 990204 v1.03 : added parameters /U and /L, corrected little bugs in log printing and /P handling (ingnoring /Pxxx:) 990531 v1.04 : end time of purge cycle is written to logfile 990805 change from freeware to cardware 001025 Changed PURGE.TXT to emphasize default extension '*' problem ----------------------------------------------------------------- If you have any problem or any suggestion concerning the further development of the program, please contact Petr Jaklin: Internet: jaklin@3net.cz fax +420 417 26859 New versions and other utilities are available on URL: http://www.3net.cz/software/