I have this in a .bat file (windows 7):

taskkill /F /IM CouchPotato.exe

(The couchpotato tends to crash alot.)

The command prompt stays open until the process ends.

Is there a way to close it after the process has excecuted?

I tried /silent after the .bat shortcut, but doesn't work..

marked as duplicate by Karan, davidgo, Dave M, Brad Patton, Breakthrough May 25 '13 at 5:30

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Run your application with start. This command returns immediately.

start CouchPotato.exe

See also How do I create a Windows Batch file that does not show the Command Prompt when executed?

Or, alternatively, how about not having a command prompt show at all? See How to run a batch file without launching a "command window"?

Not the answer you're looking for? Browse other questions tagged or ask your own question.