Open Multiple Programs at Once CMD

Asked

Viewed 93 times

-5

I want to use CMD to open a program several times.

Example I want to open 5 times with a single command.

And not as in this example.

So I don’t want this way, but any that opens with a single command.

timeout 5
start chrome.exe
timeout 2
start chrome.exe
timeout 2
start chrome.exe
timeout 2
start chrome.exe
timeout 2
start chrome.exe
timeout 5

3 answers

2

1° Open CMD.

2° Type in:

FOR /L %V IN (1 1 5) DO start chrome %V

It will open 5 pages in Chrome.

1

Type the command in the batch file:

start notepad.exe && calc.exe && mspaint.exe

Just separate each process name by one "&&".

0

There are options:

1. Run the program in the background (background): Start /b
2. Open Chrome in windows, tabs in or both not in private/ incognito mode:

  • start "" /b chrome --new-window
for %%i in (pt.stackoverflow,stackoverflow,superuser,windows,google)do start "" /b chrome --new-window %%~i.com & timeout 5
  • start "" /b chrome --new-tab
for %%i in (pt.stackoverflow,stackoverflow,superuser,windows,google)do start "" /b chrome --new-tab %%~i.com & timeout 5
  • start "" /b chrome --incognito
for %i in (pt.stackoverflow,stackoverflow,superuser,windows,google)do start "" /b chrome --incognito %~i.com & timeout 5
  • start "" /b chrome --new-window --incognito
for %%i in (pt.stackoverflow,stackoverflow,superuser,windows,google)do start "" /b chrome --new-window %%~i.com & timeout 5
  • start "" /b chrome --new-tab --incognito
for %i in (pt.stackoverflow,stackoverflow,superuser,windows,google)do start "" /b chrome --new-tab --incognito %~i.com & timeout 5

Browser other questions tagged

You are not signed in. Login or sign up in order to post.