How to do a command line search for files modified by a certain da

G

Guest

What is the command line option to do a search within a folder for files
modified by a certain date, or between certain dates, etc.

I.e, the GUI equivalent is when you open up Windows Search, and choose All
files and folders, and then expand the "When was it modified?" section, and
choose your criteria.

I need to know the command line equivalent to do that, to try it within a
script.

Thanks
 
G

Guest

Or maybe even, how do you properly use the srvany.exe tool in the win2k3
resource kit
 
J

John John

Huh? What exactly are you wanting to do with srvany and how do you
think that the tool can be used to search for files at a command prompt?

John
 
A

Ayush

Replied to [booker@mgt]s message :
What is the command line option to do a search within a folder for files
modified by a certain date, or between certain dates, etc.

I.e, the GUI equivalent is when you open up Windows Search, and choose All
files and folders, and then expand the "When was it modified?" section, and
choose your criteria.

I need to know the command line equivalent to do that, to try it within a
script.

Thanks

To Search by file name, you can use dir:
dir "C:\SomeFolder\file*" /s /a-d


Good Luck, Ayush.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top