Organize files based on mod date/time range

August 3, 2011 at 09:21:30
Specs: Windows 7
I have a directory with files written every 10-minutes for 24-hours per day, and I need to extract a set of files for specific days, around a specific time for each of the days. I have a list file of the dates for which I need the files extracted, and a list of the times for which I need to extracted files (all files + or - one hour around the specific time... or I can set it up so it's all files > than time1 and < time1 + 2 hours. For each date, the selected files (can range from around 14 to 20 total) will need to be placed in a folder corresponding to the date that the files were created.

What I can do so far:
-generate a folder structure of the chosen dates (e.g. folders named 20070511, 20070520, etc...)

Can anyone think of an automated way for me to pull the files I need, using the Modified Date and Time information, and copy them into the proper folders?

Thanks in advance for your help!


See More: Organize files based on mod date/time range

Report •

August 4, 2011 at 12:34:16
ROBOCOPY might do what you ask, but I haven't looked into it. If it doesn't work, you'll probably need to pick a language that understands time/date data. Native Win7 options include VBScript/JScript and PowerShell.

How To Ask Questions The Smart Way

Report •
Related Solutions

Ask Question