How to close cmd window?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
ekbordo
Posts: 1
Joined: 04 Mar 2019 12:35

How to close cmd window?

#1 Post by ekbordo » 04 Mar 2019 12:39

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

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: How to close cmd window?

#2 Post by Squashman » 04 Mar 2019 15:31

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

Post Reply