Flat file list between two date/time points?

  • Thread starter Thread starter Gerhard Fiedler
  • Start date Start date
G

Gerhard Fiedler

Hello,

I'd like to list all files on a drive (or in a directory tree) with a
modification date/time that's between two defined points in time.

The tools I know don't seem to be able to do that. The Windows search
facility (and also some other similar ones) allow to select dates, but not
date/time; I could display all files modified between Apr 04 00:00 and Apr
06 00:00, but not all files modified between Apr 04 06:22 and Apr 05 23:55.

Does anybody know such a tool?

A flat list sorted by date/time would also kind of work, if the application
still works with a list that contains all the files on a drive... I guess I
could use the Windows search and fill it with all files on a drive to get a
flat list and then sort that list by modification date/time, but this takes
quite a while. (It's running as I write this :)

Thanks,
Gerhard
 
Previously Gerhard Fiedler said:
I'd like to list all files on a drive (or in a directory tree) with a
modification date/time that's between two defined points in time.
The tools I know don't seem to be able to do that. The Windows search
facility (and also some other similar ones) allow to select dates, but not
date/time; I could display all files modified between Apr 04 00:00 and Apr
06 00:00, but not all files modified between Apr 04 06:22 and Apr 05 23:55.
Does anybody know such a tool?
A flat list sorted by date/time would also kind of work, if the application
still works with a list that contains all the files on a drive... I guess I
could use the Windows search and fill it with all files on a drive to get a
flat list and then sort that list by modification date/time, but this takes
quite a while. (It's running as I write this :)

What about some scripting, e.g. in Perl?

Arno
 
What about some scripting, e.g. in Perl?

Right... that's probably what I need to do if nothing else pops up.
Possibly not too fast, though.

Thanks,
Gerhard
 
Gerhard Fiedler wrote...
I'd like to list all files on a drive (or in a directory tree) with a
modification date/time that's between two defined points in time.

The tools I know don't seem to be able to do that. The Windows search
facility (and also some other similar ones) allow to select dates, but not
date/time; I could display all files modified between Apr 04 00:00 and Apr
06 00:00, but not all files modified between Apr 04 06:22 and Apr 05 23:55.

Does anybody know such a tool?

With cygwin installed on Windows:

cd /cygdrive/c/myfolder
touch -t 200604040622 time.start
touch -t 200604052355 time.end
find . ! -type d -newer time.start ! -newer time.end -print
 
Back
Top