computing
  • 32

Using Batch File To Copy Files Multiple Times

  • 32

I need to copy a file to my desktop 7 times, I have:

copy f:\pumpkin.jpg c:\users\sims\desktop

That copies it once but isnt there a way to have it copy the file 7 times without using 7 different command lines?

Share

1 Answer

  1. for /L %%i in (1 1 7) do (
    copy f:\pumpkin.jpg c:\users\sims\desktop
    )

    =====================================
    Life is too important to be taken seriously.

    M2

    • 0