We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Search file and folder based on date created

dishelp
dishelp asked
on
Medium Priority
393 Views
Last Modified: 2012-05-11
I am looking for a way to find out how to search a partition for all files and folders based on the date range they are created.

For example: I want all folders created between 1/1/2011 and 1/31/2011. How should I go about that?
Comment
Watch Question

Commented:
For 50 points,

1.  Use  DIR to obtain information and store in file
DIR /S /a:d >  C:\folderInfo.txt

2. Manually use MS WORD to "highligh" the dates you want if the number you guess is great
    or fast reading
Bill PrewTest your restores, not your backups...
CERTIFIED EXPERT
Expert of the Year 2019
Top Expert 2016

Commented:
That's going to be very hard (but not impossible, but likely not worth only 50 points) to do in a pure BAT file script.  Batch scripting doesn't have good support for dates, so comparing dates to see if they fall in a range takes more than a few lines of code.

Does this have to be a DOS batch script, or couse a VBS (vb script) solution work, it has much better date comparing capabilities.

~bp

Author

Commented:
Hello billprew,

Sorry, I'm not sure about the point system before and I wasn't clear on the difficulty. Any suggestion what I should put down for the point value? Any help would be greatly appreciated. I'm fairly new to this :)

As long as it works, we have no preference if it's VBS or DOS Batch.

Thanks in advance.

Commented:
I think that it is very hard, at least 500 points.
Bill PrewTest your restores, not your backups...
CERTIFIED EXPERT
Expert of the Year 2019
Top Expert 2016

Commented:
"For example: I want all folders created between 1/1/2011 and 1/31/2011. How should I go about that?"

So, do you just want a list of the folders?  None of the files contained in them?

Do you have any other needs?

~bp

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Bill PrewTest your restores, not your backups...
CERTIFIED EXPERT
Expert of the Year 2019
Top Expert 2016

Commented:
@dishelp

Awaiting further clarification...

~bp
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.