PDA

View Full Version : Windows Batch File Recursive copy and execute?


zendobi
10-09-07, 06:19 AM
I need to build a batch file of some sort, that recursively goes thru the directory that it is run from, and creates a new directory in the C:\ root with the name "done", then copies each folder and directory in the source to the new directory, then for each file that is a jpg file, it executes a console program that is located in C:\rebuild\rebuild.exe so that all the "rebuilt" jpgs are in the done folder along with every other file that was in the source with the same directory tree under the main directory.

Does that make sense?

Any ideas?