I want to write an MS-DOS batch file that accepts one mandatory argument %1. This argument specifies the number of times I invoke an executable file from within the batch file.
Shortly speaking, how to invoke the executable file (e.g., pdflatex.exe) %1 times from within the batch file?
You can use a for-loop.
Syntax:
For more info on For-loops in a Batch-file, use Google: batch for