batch script question...

Homerboy

Lifer
Mar 1, 2000
30,890
5,001
126
I have a jpg I need to make ~300 copies of.
Lets say its ABC.jpg
I want to copy it 300 times into 1.jpg, 2.jpg, 3.jpg... 300.jpg

Any way to do this with a batch script? Or any other easy way you can think of?

Thanks.
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
This is one way I know to do it in vbscript. Save the following as a .vbs file and put the file in the same directory as the ABC.jpg file. Then run it by double-clicking it.


Set objFSO = CreateObject("Scripting.FileSystemObject")
For i = 1 To 300
objFSO.CopyFile "ABC.jpg", i & ".jpg"
Next