Close CMD after running batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
tacoboy
Posts: 1
Joined: 31 Mar 2021 15:15

Close CMD after running batch

#1 Post by tacoboy » 31 Mar 2021 15:19

Hello, I created a short Batch file to help me perform a common action more quickly.
The CMD prompt stays open after my Batch file runs.
How do I make the CMD prompt close. I figured "exit" would do it - but not working

I am using Windows 10 & here is my shot script

------------------------------------------------------------------
@ECHO OFF
cmd.exe /K taskkill /F /IM "AdobeGCClient.exe" /T
exit

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

Re: Close CMD after running batch

#2 Post by Squashman » 31 Mar 2021 15:29

Remove cmd.exe /K

Post Reply