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.
Try this:
I'm using Windows XP, so YYMV with more recent versions.
The redirection is hiding execution problems with Diskpart.exe and if it got that far, for diskperf.exe as well. Diskpart is waiting for input, and diskperf requires a command line arguement.
If I understand you correctly, you want near parallel execution of diskpart.exe and diskperf.exe.
This might accomplish what you want - create a batch file with these lines:
I've removed the redirection, and made the output of each command visible. The trailing &exit closes the window when the command is finished. Remove the &pause lines and the programs will exit normally.
I could only get IE to launch if I reduced the path to its 8.3 format.
Tweeked what @TiZon put.
use
cd Windows\System32\
call diskpart.exe
call diskperf.exe
try
call start cmd /k diskpart.exe call start cmd /k diskperf.exe