by
8,522 33
1
5
2,427
1
Top 1% !
Popular
Famous
Specified
OpenSource
Popularity: 6170th place
Created
Modified Mar 23, 2015

Published on:

No tags for this snippet yet.
Languagebatch
LicenseMIT_X11
OSWindows

Windows - kill a program from command line

How to kill a program, with a given command launch string. 
Note: to run in a bat file replace % with %%
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/421929/Windows---kill-a-program-from-command-li?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
wmic process Where "Caption Like '%myexe.exe%' AND CommandLine Like '%mycommandline%'" delete
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus