home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / fileutil / timek_11.arj / TIMEKILL.DOC < prev    next >
Encoding:
Text File  |  1990-09-05  |  2.5 KB  |  74 lines

  1.  
  2.             TIMEKILL - V1.1   (c) 1990 by Thomas Dobusch
  3.                         FidoNetNode 2:507/8
  4.  
  5. ---------- What's new in 1.1 ----------
  6.  
  7. A sysop asked me wether I could install a opportunity not only to delete
  8. the files but to move them in another directory.
  9. So I did!
  10. Now you may choose between deleting the files and moving them into
  11. another directory.
  12. TIMEKILL will improve wether the backupdirectory exists before it will
  13. kill the files so that there is some security handling with your files.
  14.  
  15. ---------------------------------------
  16.  
  17. Dieter Soltau of 2:507/1 asked me wether I could write a small program
  18. for him that will look in different directories and kill files there
  19. older as a given number of days.
  20.  
  21. And that's it was TIMEKILL does.
  22.  
  23. There are two possibilities to start the program:
  24.  
  25. 1. You can call it like  TIMEKILL C:\DOS    10
  26.    This will force TIMEKILL to change into the DIR C:\DOS and delete all
  27.    files older than 10 days.
  28.    So it would be better NOT to do so in your DOS-DIR  :-)
  29.    If you will give the name of another path as aother parameter
  30.    TIMEKILL will move the files into this directory instead of killing
  31.    them.
  32.  
  33.    Example:
  34.    TIMEKILL C:\DOS 10 C:\BACKUP
  35.  
  36. 2. You may create a file called TIMEKILL.CFG in which you can place all
  37.    directories you want TIMEKILL to look about files older than a given
  38.    number of days:
  39.  
  40.    C:\DOS    10    Move  C:\BACKUP
  41.    D:\TURBO   5
  42.    E:\MYPRG  20 and so on..
  43.  
  44.    where C:\DOS is the directory and 10 is the number of days that files
  45.    in this directory may be old so that TIMEKILL will let them stay.
  46.    If TIMEKILL finds the MOVE-statement in the cfgline it will move the
  47.    files into the path given behind it instead of killing them only.
  48.  
  49.    It is allowed to take a ";" as the first sign of the controlfileline,
  50.    in this case TIMEKILL will ignore it.
  51.  
  52. If you call TIMEKILL ? you will get a small discription of using
  53. TIMEKILL.
  54.  
  55. In case that the directory you defind in the cfgfile or as a parameter
  56. does not exist TIMEKILL will halt with an ERRORLEVEL of 3.
  57.  
  58. In case that one ore more of the directories does not exist TIMEKILL
  59. will stop with an ERRORLEVEL of 2 so you can ask this in a batch.
  60.  
  61. If you call TIMEKILL without any parameters and it can't find any
  62. TIMEKILL.CFG in the current dir it will stop with an ERRORLEVEL of 1.
  63.  
  64. I hope you find TIMEKILL usefull, in this case I would be happy if you
  65. will give me a small letter to:
  66.  
  67. Thomas Dobusch
  68. 5804 Herdecke
  69. Zeppelinstr. 12
  70. GERMANY
  71.  
  72. or write me a netmail to
  73. Thomas Dobusch of 2:507/8
  74.