| Author |
Message |
Nick
Guest
|
Posted:
Tue Apr 12, 2005 2:29 am Post subject:
Wanted: powerful extended DIR or FIND utility. |
|
|
Hi
From windows server 2003 command line, I want to be able to search a
huge directory tree for *.ext, only returning files which were
modified or created since a certain date. I want the output to be 1
line per file, show the full path\filename, as well as the date & time
in a standard format.
Also, I dont want it to break if it comes across files/folder which it
cannot access.
The windows DIR command cannot list the path as well as the date and
time stamp, and it cannot only return recently modified files.
FIND from GNU utilities for Win32, is excellent, except I get "System
Volume Information: Bad file descriptor" on folders it cannot access.
LS from GNU utilities for Win32, cannot only return recently modified
files.
Perl also seems to fail when it hits a folder which it doesnt have the
permissions to read.
Obviously it needs to run very efficiently, and would preferable to
have loads more powerful options.
Any suggestions?
Also, if anyone knows any tips for getting the maximum speed out of
it, I'll be greatful.
Thanks
Nick |
|
| Back to top |
|
 |
nmayes
Guest
|
Posted:
Tue Apr 12, 2005 3:52 am Post subject:
Re: Wanted: powerful extended DIR or FIND utility. |
|
|
| Have you looked at Forfiles.exe? |
|
| Back to top |
|
 |
nmayes
Guest
|
Posted:
Tue Apr 12, 2005 3:53 am Post subject:
Re: Wanted: powerful extended DIR or FIND utility. |
|
|
Have you looked at Forfiles.exe? It's a native Windows 2003 command
line tool.
-nm |
|
| Back to top |
|
 |
Nick
Guest
|
Posted:
Tue Apr 12, 2005 1:46 pm Post subject:
Re: Wanted: powerful extended DIR or FIND utility. |
|
|
One of the FORFILES help examples is:
FORFILES /M *.* /D +1
Can anyone get this to work? Ie find files changed in the last 1 day
(or 1000 days). It fails every time for me.
Also,
It's sad that FORFILES doesn't support date created.
Any other suggestions for a utility which DOES support date created?
Thanks
Nick |
|
| Back to top |
|
 |
Michael Bednarek
Guest
|
Posted:
Tue Apr 12, 2005 1:46 pm Post subject:
Re: Wanted: powerful extended DIR or FIND utility. |
|
|
4NT's (Version 6) PDIR command can do that:
pdir /[d2005-04-01,2005-04-12] /s /(fpn dy-m-d th:m:s) *.ext
will show all files modified between those two dates, or
pdir /[d-22] /s /(fpn dy-m-d th:m:s) *.ext
will show files modified in the last 22 days.
Output will look like this:
C:\dir1\dir2\some.ext yyyy-mm-dd hh:mm:ss
PDIR is documented at <http://jpsoft.com/help/pdir.htm>, 4NT's Date
Ranges at <http://jpsoft.com/help/dateranges.htm>.
--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS" |
|
| Back to top |
|
 |
Michael Bednarek
Guest
|
Posted:
Tue Apr 12, 2005 6:49 pm Post subject:
Re: Wanted: powerful extended DIR or FIND utility. |
|
|
| Quote: | One of the FORFILES help examples is:
FORFILES /M *.* /D +1
Can anyone get this to work? Ie find files changed in the last 1 day
(or 1000 days). It fails every time for me.
|
Shouln't that be "-1":
FORFILES /M *.* /D -1
| Quote: | Also,
It's sad that FORFILES doesn't support date created.
Any other suggestions for a utility which DOES support date created?
|
4NT's date ranges do: /[dc-1] should select files created yesterday or
today.
--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS" |
|
| Back to top |
|
 |
TB
Joined: 31 Jan 2006
Posts: 1
|
Posted:
Tue Jan 31, 2006 7:53 pm Post subject:
FFIND, DIR - Where, Whereis, DSD |
|
|
Try Where, Whereis, and DSD (Directory since date) of the GRT Software Command Line Tools (Freeware). Read Readme.TXT before. Maybe you'll find more than expected.
Link: http://www.heinerbrackel.de/GRTS/Download26.htm |
|
| Back to top |
|
 |
|
|
|
|