Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

taskkill /F /IM CouchPotato.exe
TIMEOUT /T 5
CouchPotato.exe
exit

(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..

share|improve this question

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.

1 Answer 1

up vote 3 down vote accepted

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"?

share|improve this answer

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