Wanted: powerful extended DIR or FIND utility.
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Wanted: powerful extended DIR or FIND utility.

 
Post new topic   Reply to topic    Windows Server Forum Index -> Programming
Author Message
Nick
Guest





Posted: Tue Apr 12, 2005 2:29 am    Post subject: Wanted: powerful extended DIR or FIND utility. Reply with quote

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. Reply with quote

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. Reply with quote

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. Reply with 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.
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. Reply with quote

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. Reply with quote

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 Reply with quote

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
View user's profile Send private message
 
Post new topic   Reply to topic    Windows Server Forum Index -> Programming All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB