DOS Batch script loop
Posted
by Tom J Nowell
on Stack Overflow
See other posts from Stack Overflow
or by Tom J Nowell
Published on 2010-04-07T10:54:29Z
Indexed on
2010/04/07
11:03 UTC
Read the original article
Hit count: 389
I need to execute a command 100-200 times, so far my research indicates that I would either have to copy paste 100 copies of this command, OR use a FOR loop, but the for loop expects a list of items, hence I would need 200 files to operate on, or a list of 200 items, hence defeating the point.
I would really not have to write a C program and go through the length of documenting why I had to write another program to execute my program for test purposes. Modification of my program itself is also no an option.
So, given a command how would I execute it times via a DOS batch script?
© Stack Overflow or respective owner