msmafra
msmafra

Reputation: 1714

How can use Windows cmd/bat file to open various apps at once and close the terminal windows?

I am using this:

start /b cmd /c "C:\Windows\notepad.exe"
start /b  cmd /c "C:\Program Files\Google\Chrome\Application\chrome.exe"
start /b cmd /c "C:\Program Files\Skype\Phone\Skype.exe"
exit

The above works but keeps the prompt/terminal window open. How can I close it from inside the bat/cmd file as soon as the last app is open?

Upvotes: 0

Views: 2261

Answers (1)

Richard
Richard

Reputation: 46

Try the following instead:

C:
cd \Windows
start notepad.exe
cd "\Program Files\Google\Chrome\Application"
start chrome.exe
cd "\Program Files\Skype\Phone"
start Skype.exe
exit

it is probably the fact that your starting cmd - just start the application

Upvotes: 3

Related Questions