Im looking for a command line equivalent of the search for files button - or
the ability to dump the output of a windows search into a printable file.
Find doesnt seem to reallly be it.
I specifically want to search a large subset for all files modified on or
after date x. I can do it with the gui, but need the output in a form i can
print....
Findstr is a good choice but doesn't provide a direct mechanism to
specify a list of files matching some date or other criteria.
However you can combine this with a utility such as FORFILES (resource
kit), FI (
http://home.pe.net/~fpw/freeware/), XXCOPY
(
http://www.xxcopy.com/) or similar which can produce a list of files
that matches your selection criteria. XXCOPY is the most versatile in
terms of selections criteria (wild-wildcards, date, age, size,
attributes, exclusion lists and more) and is free for non-commercial
use.
You would then use the /F: option to pass this list of files (possibly
after some tidying up) to FINDSTR.
If all you need to do is capture the list of files that the GUI
produces, you can use PASTE (also from
http://home.pe.net/~fpw/freeware/). After the search, select all the
files found and press ^C. Then open a Cmd window and type:
Paste >> found.txt
The file list will be appended to found.txt
Garry