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!
David
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.
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |