Batch file - close command window (Outlook)

EssKayKay

Distinguished
Aug 31, 2011
60
1
18,535
I have a batch file that turns off sound then opens Outlook via code –

c:\tools\nircmd\nircmdc mutesysvolume 1
"C:\Program Files (x86)\Microsoft Office\OFFICE11\OUTLOOK.EXE"

It does what I want but the command window remains open. When I close Outlook it takes a while (10 seconds) to close the command window. Is there a way to run the two commands above but close the command window while leaving Outlook open? I’m running Win10.

Thanks,
SKK
 


Usually, START "" (Actual stuff) is a good way of doing this.

A quick test w/ Notepad suggests as much.

START "" notepad.exe
EXIT

If you put that in a bat and start it, notepad opens and the cmd window behind it closes immediately. Try it w/ outlook. See how it goes.