Need script to batch move files from folders
Posted on 2011-04-28
I recently ran a file recovery program from a damaged disk, however it restored all my files into 368 seperate folders, with no real logistics behind it. I need a script or batch file that will move files by extension into seperate folders.
All files are located in folders called G:\Recover\recup_dir.1 through G:\Recover\recup_dir.368
Within each of the recup_dir.1 , .2 , .3 etc... folders are various different file types ranging from exe to jpg, etc.
I would like the script/batch file to run through each of these recup_dir.### folders and MOVE files by extension into a new folder created under G:\Recover\JPG and G:\Recover\DOC etc.
If also possible, I would like to specify it move files with *.jpg extension only larger than 1MB into the G:\Recover\JPG folder.
Thank you in advance. Be advised I have limited knowledge in creating/modifying scripts, so I basically need the code and just so I can execute it.