Page 1 of 1

How to close cmd window?

Posted: 04 Mar 2019 12:39
by ekbordo
Hello everyone;

I want to execute 2 commands that start some exe. When click batch file, cmd window is opened. Even if I closed these exe, cmd window is still open. How can I close cmd window when commands finish?

Any ideas?

My command :

start "" & notepad.exe
start "" & notepad.exe

Re: How to close cmd window?

Posted: 04 Mar 2019 15:31
by Squashman
The ampersand is a special character that concatenates two commands onto one line. Not sure why you think you need it in your code.

Code: Select all

start "" notepad.exe
start "" mspaint.exe