Maff
Maff

Reputation: 439

Need to copy and rename files in different folders

would anyone know how to write a batch file (or two) that would: copy hundreds of "index.html" files that are in different folders and keep within the same folder (so needs to search within sub folders) rename the copies (keep the originals as is) to "index.jpg"

could anyone help?

Upvotes: 1

Views: 273

Answers (1)

Maff
Maff

Reputation: 439

I used a bulk rename tool to rename all index.html files to index.jpg in a copy of the main folder, then used robocopy to copy everything over, including the file structure back to the original folder (leaving the index.html's alone)

Upvotes: 0

Related Questions