KillByArgs kills a process that contains specific command-line arguments.
> KillByArgs PROCESSNAME ARG(s) [/ALL] PROCESSNAME - name (or part of a name) of target process ARG(s) - string to look for in the process' arguments /ALL - kill all matches, or else just first match found RETURNS number of processes matched (processes may not be killed depending on permissions) eg: Kills only notepad that has foobar.txt open: > KillByArgs notepad foobar.txt eg: Kills all instances of explorer that were run as embedded: > KillByArgs explorer -embedding /all
NOTE: Be as specific as possible to avoid killing unintended processes!
Changelog:
Show ▼