home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 29 / amigaformatcd29.iso / -coverdisks- / 113a / dayprogs / daymove.readme < prev    next >
Encoding:
Text File  |  1998-06-08  |  3.5 KB  |  87 lines

  1. Short:    DayMove 1.21 - Move files (+/-)x days old
  2. Author:   jthorsen@netpower.no
  3. Uploader: jthorsen@netpower.no
  4. Type:     util/cli
  5. Replaces: util/cli/DayMove.lha
  6. Version:  1.21
  7.  
  8.  
  9. DayMove is email-ware, which means that if you like it I would really like to receive a mail from 
  10. you telling me so.
  11. DayMove is just a small util that will let you move -x days old files from one directory to another.
  12.  
  13. USAGE:
  14. DayMove <number of days> <source> <dest> [OLDER] [LIST] [QUIET] [TIME=<n>]
  15.  
  16. NUMBER_OF_DAYS - How many days old files to move
  17. SOURCE_DIR     - Source-dir
  18. DEST_DIR       - Dest-dir
  19. OLDER          - move only older than x-days old files, move newer is default.
  20. LIST           - Do not move files, only list them.
  21. QUIET          - Do not ask questions, this is smart to use in scripts where 
  22.                  you don't want the program to wait for your response.
  23. TIME           - Hours past midnight                 
  24.  
  25. examples:
  26. ---------------------------------------------------------------------------------------------
  27.  
  28. daymove 0 store:tmp/ BBS:upload/ ;This will move todays files from store:tmp/ to BBS:upload/
  29.  
  30. daymove 50 store3:tmp/ ram: OLDER LIST ;This will list files in store3:tmp/ that are 
  31.                                         older than 50 days. It can be quite smart to
  32.                                         use the LIST switch to display the affected files
  33.                                         before you actually start moving them, and then
  34.                                         afterwards start daymove without the LIST switch
  35.                                         to actually move the files.
  36.                                         Even if the dest-dir is not used in list-mode, a valid
  37.                                         dest-dir has to be passed as an argument, because of the 
  38.                                         argument parsing.
  39.  
  40.  
  41. daymove 0 ram: ram:recent/ time=5  ;Move files that were created after 05:00 today
  42.  
  43. daymove 3 ram: ram:old/ time=9 older ;Move files that were created before 09:00, 3 days ago
  44.  
  45. ---------------------------------------------------------------------------------------------
  46.  
  47. This should be quite simple to figure out I guess, but if you are stuck feel free to 
  48. send me a mail.
  49.  
  50. DayMove is part of a serie of smart little tools. You should also check out the
  51. following utils released by me (in aminet/util/cli/):
  52.  
  53. DayCopy
  54. DayDelete
  55. DayList
  56.  
  57. And also these utils will be released in the near future:
  58.  
  59. SizeCopy
  60. SizeDelete
  61. SizeMove
  62. SizeList
  63.  
  64.  
  65. Version History:
  66.  
  67. 1.21 Now uses raw-mode for input, so the input will not be put in the CON's history.
  68.      Reported by Stefan Schulz
  69.  
  70. 1.2  Fixed a memory-allocation-bug, that caused daymove to crash.
  71.      TIME argument added, suggested by Fredrik Ismyren. 
  72.  
  73. 1.11 Fixed a bug in the routine testing if the file was copied ok.
  74.      The destination file was deleted, instead of the source file(!) 
  75.      In other words v1.1 would not do anything usefull ;)
  76.  
  77. 1.1  DayMove will now preserve creation-date/filecomment and protection when moving the file.
  78.      But if you choose to un-protect the file from deletion, the destination will then be unprotected too.
  79.      If anybody want to move a file, but still keep the file protected from deletion in the destination-drawer,
  80.      please tell me so...
  81.      Suggested by Fredrik Ismyren.
  82.  
  83. 1.0  First public release
  84.      Will check to see if the file is protected from deletion and let you decide if
  85.      if you want to un-protect it.
  86.      Will NOT delete the file if the copy was not successfull.
  87.