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

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
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.
 
Back
Top