1

I have an executable (e.g. test.exe).

How can I run that same executable multiple times in parallel? The easiest way is to open several cmd windows and run test.exe from there, but that's probably not the fastest, or even easiest, way do it.

2
  • You can build a batch file loop and call your exe multiple times Mar 20, 2014 at 23:47
  • How about using a batch script that contains several lines of "test.exe"?
    – greatwolf
    Mar 20, 2014 at 23:48

2 Answers 2

1

Make a new batch file (e.g. multirun.bat) with the following contents.

@echo off 
for /l %%x in (1, 1, %1) do start %2 %3 %4 %5 %6 %7 %8 %9

Usage:

multirun.bat times command 
e.g. multirun 3 calc 

Tested on Windows 7 x64. If you don't want to see new console windows, use "start /b" on the script.

1

Make an appropriate "shortcut" for the executable, and then clicking on the shortcut's icon N times will launch N instances, unless the app has been written to prevent that.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .