Answer the question
In order to leave comments, you need to log in
How can I make the cmd window close when the script ends?
I want to set the monitor to turn off on the button (using nircmd, although the option via PS gave the same result).
did like this:
nircmdc.exe monitor off
start "" "nircmdc.exe" monitor off
start "" /B "nircmdc.exe" monitor off
cmd /c start "" /B "nircmdc.exe" monitor off
cmd "nircmdc.exe" monitor off
Answer the question
In order to leave comments, you need to log in
start nircmd.exe monitor off
tasklist | find "nircmd.exe"
taskkill /f /im nircmd.exe
exit
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question