i am trying to write a batch file that will take a bunch of subdirectories, and duplicate whats inside each one. in other words i will have a directory containing say five folders named 1 2 3 4 5, and in each folder there will be 1 picture (a different photo in each folder). i want a batch file to keep the folder structure the same so i still have folders 1 2 3 4 5, but instead of 1 picture in each folder i want there to be 2, the same picture duplicated. so image 1, and image 1 (copy).
thanks..
newbie needs some help :)
Moderator: DosItHelp
Re: newbie needs some help :)
Code: Select all
@echo off
for /r %%a in (*) do copy "%%a" "%%~dpna-copy%%~xa"