Hello I am trying to create multiple copies of a single file in multiple directories?
for example I have 6 folders with a single file in each folder named lp.html, How can I run a batch to create 100 copies of said files in each directory.
The code I have creates multiple copies but I have to do it one by one and it becomes tedious when I have over 100 folders to do.
So how can I turn this batch file to do what I am trying to accomplish. [I Am Running Windows 7]
ADDED INFO: All folders are in the same parent folder, files in the folders are different from one another
@echo off for /L %%i IN (1,1,100) do call :docopy %%i goto end :docopy set FN=00%1 set FN=%FN:~-3% copy source-file.html poll%FN%.html :end