I think this is the simplest way to do that:
command1
(
start "task1" cmd /C "command3 & command4 & command5"
start "task2" cmd /C "command6 & command7 & command8"
) | pause
command9
Further details in the comments below this answer.
More Related Contents:
- How to wait all batch files to finish before exiting?
- Execute multiple batch files concurrently and monitor if their process is completed
- Example of delayed expansion in batch file
- How do I run two commands in one line in Windows CMD?
- Batch command date and time in file name
- Windows batch: echo without new line
- Parallel execution of shell processes
- Where is “START” searching for executables?
- How to test if a file is a directory in a batch script?
- Escape percent in bat file
- windows batch SET inside IF not working
- How can two text files be read in parallel by a batch file?
- Capture output command CMD
- Batch files: List all files in a directory with relative paths
- “rd” exits with errorlevel set to 0 on error when deletion fails, etc
- Convert a small PS script into a long line in a .BATch file
- Curl not recognized as an internal or external command, operable program or batch file
- What is the easiest way to reset ERRORLEVEL to zero?
- Why is the FOR /f loop in this batch script evaluating a blank line?
- How to count no of lines in text file and store the value into a variable using batch script?
- Split string with string as delimiter
- How to change Screen buffer size in Windows Command Prompt from batch script
- How do I minimize the command prompt from my bat file
- Path prefixes \??\ and \\?\
- What would be the Windows batch equivalent for HTML’s input type=”password”?
- Windows console %DATE% Math
- How can I source variables from a .bat file into a PowerShell script?
- ERRORLEVEL vs %ERRORLEVEL% vs exclamation mark ERRORLEVEL exclamation mark
- How to expand a CMD shell variable twice (recursively)
- Split %date% in a batch file regardless of Regional Settings