Windows – Batch file that spawns multiple Cmd prompt sessions running different applications

batch-filewindows

I am using a batch file to launch two different applications at the same time in different command line windows. Here is what I have:

start cmd /k
cd Windows\System32\ 
diskpart.exe >NUL & 
diskperf.exe >NUL &  

Repeat for every app you want to run.

I run this and it opens a new command prompt running both applications one after the other. However the other window opens and is waiting for a command.

Any ideas on putting the 2nd and following commands go into the separate command prompts per & statement.

Best Answer

Try this:

cd Windows\System32\ 
cmd /k diskpart.exe
cmd /k diskperf.exe