Skip to content

Instantly share code, notes, and snippets.

@agazso
Created July 20, 2011 19:48
Show Gist options
  • Save agazso/1095755 to your computer and use it in GitHub Desktop.
Save agazso/1095755 to your computer and use it in GitHub Desktop.
Run the same command multiple times in parallel on Windows
REM Runm: Run the same command multiple times in parallel on Windows
REM First argument is the number of processes to be run in parallel
REM Second argument is the name of the process to be run
REM Change /K to /C if you want to close the windows after the processes are done running
FOR /L %%I IN (1,1,%1) DO START CMD /K %2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment