home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / NEW13.ZIP / NEW.DOC next >
Text File  |  1991-04-12  |  4KB  |  96 lines

  1. This is a quick and dirty OS/2 version (with a few enhancements) of an
  2. old DOS program I used to use to find new files on my hard disk.
  3.  
  4. The usage is:   NEW  [numdays] { [/x] [-x] }
  5.                          │           │   
  6.                          │           │   / Search for files newer than numdays
  7.                          │           │   - Search for files older than numdays
  8.                          │           └─ A use Last Access Date
  9.                          │               C use Creation Date
  10.                          │               W use Last Write Date
  11.                          │
  12.                          └─ Number of days ago to start search at
  13.  
  14.  
  15. The program will find all files newer (or older if -A, -C, or -W is selected)
  16. than numdays old on all disk drives beyond 'B:'.  If the numdays parameter is
  17. left out, 0 is assumed (files written today).   If the type of date to search
  18. for is left out, /W is assumed (If the type of File Date field is entered,
  19. numdays MUST be entered also).
  20.  
  21. Note:  FAT drives cannot be searched based on Creation or Last Access date
  22.        as this information does not exist.  If you have any FAT drive(s) and
  23.        specify a search based on Creation or Last Access date, the drive(s)
  24.        will be skipped.
  25.  
  26. Examples:
  27.  
  28.         Find all files with a write date newer than 21 days ago:
  29.                 NEW 21
  30.  
  31.         Find all files that have not been accessed in the previos year:
  32.                 NEW 365 -A
  33.  
  34.         Find all files with a creation date of today:
  35.                 NEW 0 -C
  36.  
  37.         Find all files with a last write date of today:
  38.                 NEW
  39.  
  40.         Find all files written in the last 30 days and sort the output
  41.         by date storing it in a file called foo.bar:
  42.                 NEW 30 | SORT >foo.bar
  43.         (Requires SORT.EXE - included with OS/2 or similar program)
  44.  
  45. Note:  The program is not case sensitive - you may type A,C,W or a,c,w
  46.  
  47.  
  48.  
  49.  
  50.                 Feel free to use and distribute this program.
  51.  
  52.         There is no warranty of any kind, and the program author is not
  53.         liable for damages of any kind.  By using this free software,
  54.         you agree to this.  If you use the program, please send a letter
  55.         to my wife (Sharon) at the address below and tell her that my
  56.         software efforts are not totally wasted!
  57.  
  58. Version History
  59.  
  60. 1.3     April 12, 1991
  61.         Changed output format to put date in column 1, and formatted as
  62.         year-month-day so sort will work across year boundries.
  63.         NOTE: CRC of NEW.EXE in ZIPFILE is ECE136AC
  64.               with a date/time of 04/12/1991 09:00:10
  65.  
  66. 1.2     April 11, 1991
  67.         Added support for access date and create date.
  68.         Added support for searching for files older than given date.
  69.         FAT drives are skipped if search is for last access or creation date
  70.  
  71. 1.1     April 8, 1991
  72.         Added support for Long File Names
  73.         Output my be piped (to SORT.EXE, etc...) or redirected easier
  74.         Opening info is sent to stderr, so only file data goes to stdout
  75.  
  76. 1.0     April 5, 1991
  77.         Finds new files on hard disk.
  78.  
  79.  
  80. Future enhancements:
  81.        Ability to specifiy Disk(s) to search
  82.        Ability to presort the output based on date / filename
  83.  
  84. Your comments and feedback are welcome
  85.  
  86. If you have any specific requests, please let me know and I will try to add
  87. them in.
  88.  
  89.  
  90.                                 Rick Suntag
  91.                                 21 Meadowpark Avenue West
  92.                                 Stamford, CT 06905-2225
  93.  
  94. I may be reached at AT&T Easylink mailbox 62206830
  95. or at Magnum OS/2 BBS (805)582-9306 (user /160)
  96.