home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / killold1.zip / KILLOLD.DOC < prev    next >
Text File  |  1996-06-11  |  3KB  |  90 lines

  1.  
  2.  
  3.  ***CAUTION*** ***ATTENTION*** ***WARNING***
  4.  
  5.  THIS PROGRAM IS ACTUALLY DESIGNED TO ERASE FILES FROM YOUR SYSTEM ON
  6.  A CONTROLLED BASIS. IMPROPER OR CAUSAL USE OF THIS PROGRAM CAN REMOVE
  7.  FILES THAT YOU MAY HAVE INTENDED TO KEEP. MAKE SURE YOU KNOW EXACTLY WHAT
  8.  YOU ARE DOING WHEN YOU USE THIS PROGRAM.
  9.  
  10.  YOU HAVE BEEN WARNED.
  11.  
  12.  ***CAUTION*** ***ATTENTION*** ***WARNING***
  13.  
  14.  
  15. This program will delete all files from a directory that are <age> days old.
  16.  
  17. Format is KILLOLD <directory> <age>
  18.   or
  19.           KILLOLD <listfile> <age>
  20.   where <listfile> contains a list of directories and age.
  21.  
  22.  
  23.  
  24.  This is a very straightforward program to delete "old" files from
  25.  a directory.
  26.  
  27.  It takes 2 possible parameters: a directory (or listfile) and an "age"
  28.  in days old to check for. It will scan the directory and delete any files
  29.  older than the specified number of days.
  30.  
  31.  The listfile is simply a shortcut way of running this program against a
  32.  lot of directories at one time. It has the same format as the parameters
  33.  to the program itself. IE: a directory name and the age in number of days
  34.  to check for deletable files. If you supply an age on the command line with
  35.  a listfile, then this will be the "default age" for any directories in the
  36.  listfile that do not specify an age.
  37.  
  38.  
  39.  sample invocations:
  40.  
  41.  killold c:\tempfiles 10
  42.  
  43.  would delete any files older than 10 days from the c:\tempfiles directory.
  44.  
  45. if you had a listfile named c:\delete.lst of the format:
  46.  
  47. c:\tempfiles 10
  48. c:\oldjunk 21
  49. c:\discardable
  50. c:\outbound 14
  51.  
  52.  The command:
  53.  
  54.  Killold c:\delete.lst 15
  55.  
  56. would check and delete files older than:
  57.  
  58.  10 days old in the c:\tempfiles directory
  59.  21 days old in the c:\oldjunk directory
  60.  15 days old in the c:\discardable directory
  61.  14 days old in the c:\outbound directory
  62.  
  63.  
  64.  Requirements:
  65.  
  66.  REXXUTIL.DLL must be installed.
  67.  
  68.  RXDATES.CMD must be in the same directory as KILLOLD.CMD. This is a general
  69.  purpose routine I wrote a while ago to handle date conversions and date
  70.  manipulations. You might find it useful in itself in any other routines you
  71.  write.
  72.  
  73.  POSTLOG is a routine that I use to log activity. You can modify
  74.  it however you wish or delete calls to it from the KILLOLD.CMD
  75.  program. I find it handy though.
  76.  
  77.  
  78.  You have the source, so any "bug fixes" are totally up to you. I would
  79.  appreciate hearing from you if you do find one or add significant functions
  80.  that other users might like to see.
  81.  
  82.  
  83.  Denis Tonn
  84.  
  85.  Fido 1:153/908
  86.  
  87.  DTONN@VNET.IBM.COM
  88.  
  89.  
  90.