1.

Solve : Looping a batch file N times- How??

Answer»

I have a batch file that CALLS some Fortran programs and does some file copies etc. I want to run this batch file N number of TIMES and then stop. How can I do this without keyboard intervention ie run the batch file N times and stop automatically. Thanks. FFor /L %%A IN (1, 1, n) DO Call MyBat

If you look at the help for FOR, the /L means to loop, the numbers in the brackets are - the START number, the STEP number and lastly the end number (with 1s in the previous parts, therefore the number of iterations)

GRAHAM



Discussion

No Comment Found