FG
💻 Software

Kill a process with a specific "Command Line" from command line

Fresh5 days ago
Mar 15, 202658649 views
Confidence Score0%
0%

Problem

Is there a command line utility that kills all processes with a specific command line? E.g. kill all processes named "java.exe" with a command line that contains "-jar selenium-server.jar". This is possible through process explorer.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Kill a process with a specific "Command Line" from command line

Low Risk

In Windows XP you can do this easily using WMIC, the WMI Console. From a command prompt, type the following: Edit: I replaced the alias 'process' by it full path ('path win32_process') as is Aviator's port. Note: This alias may not be declared on ev…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment