home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Professional
/
OS2PRO194.ISO
/
os2
/
fileutil
/
newdat
/
new.doc
next >
Wrap
Text File
|
1991-04-12
|
4KB
|
96 lines
This is a quick and dirty OS/2 version (with a few enhancements) of an
old DOS program I used to use to find new files on my hard disk.
The usage is: NEW [numdays] { [/x] [-x] }
│ │
│ │ / Search for files newer than numdays
│ │ - Search for files older than numdays
│ └─ A use Last Access Date
│ C use Creation Date
│ W use Last Write Date
│
└─ Number of days ago to start search at
The program will find all files newer (or older if -A, -C, or -W is selected)
than numdays old on all disk drives beyond 'B:'. If the numdays parameter is
left out, 0 is assumed (files written today). If the type of date to search
for is left out, /W is assumed (If the type of File Date field is entered,
numdays MUST be entered also).
Note: FAT drives cannot be searched based on Creation or Last Access date
as this information does not exist. If you have any FAT drive(s) and
specify a search based on Creation or Last Access date, the drive(s)
will be skipped.
Examples:
Find all files with a write date newer than 21 days ago:
NEW 21
Find all files that have not been accessed in the previos year:
NEW 365 -A
Find all files with a creation date of today:
NEW 0 -C
Find all files with a last write date of today:
NEW
Find all files written in the last 30 days and sort the output
by date storing it in a file called foo.bar:
NEW 30 | SORT >foo.bar
(Requires SORT.EXE - included with OS/2 or similar program)
Note: The program is not case sensitive - you may type A,C,W or a,c,w
Feel free to use and distribute this program.
There is no warranty of any kind, and the program author is not
liable for damages of any kind. By using this free software,
you agree to this. If you use the program, please send a letter
to my wife (Sharon) at the address below and tell her that my
software efforts are not totally wasted!
Version History
1.3 April 12, 1991
Changed output format to put date in column 1, and formatted as
year-month-day so sort will work across year boundries.
NOTE: CRC of NEW.EXE in ZIPFILE is ECE136AC
with a date/time of 04/12/1991 09:00:10
1.2 April 11, 1991
Added support for access date and create date.
Added support for searching for files older than given date.
FAT drives are skipped if search is for last access or creation date
1.1 April 8, 1991
Added support for Long File Names
Output my be piped (to SORT.EXE, etc...) or redirected easier
Opening info is sent to stderr, so only file data goes to stdout
1.0 April 5, 1991
Finds new files on hard disk.
Future enhancements:
Ability to specifiy Disk(s) to search
Ability to presort the output based on date / filename
Your comments and feedback are welcome
If you have any specific requests, please let me know and I will try to add
them in.
Rick Suntag
21 Meadowpark Avenue West
Stamford, CT 06905-2225
I may be reached at AT&T Easylink mailbox 62206830
or at Magnum OS/2 BBS (805)582-9306 (user /160)