Script to Move Files by Date Modified Into Folders by Date
Posted on 2011-05-02
I recently ran a recovery program on a failed hard drive that was able to recover most of my files. Unforunately it didn't maintain the file oranizational structure and names, but miraculously maintained the date modified attribute. I have over 6,800 JPGs in a folder, that I need a script to:
-read the date modified (excluding the time) of each of these JPGs
-create a folder for each JPG that has a date
-move the JPGs from the main folder (G:\Recover2\JPG) to the (G:\Recover3) folder into folder names that are created by the date modified attribute of these files.
Attached picture as example of files, so I have a group of JPGs that were taken on 7/24/2008, 8/2/2008, 9/19/2008, etc, I would like the script to create a folder 2008_07_24 (or something similar) and move the group of pictures that were taken on that date into the folder, essentially deletting them from the original location.
Have limited scripting knowledge, but know enough to put in notepad and rename to vbs or bat and execute. Thanks.