I just read the following command:
taskkill /f /im something.exe
I read that /f
forces the task to close, but what does /im
do?
I just read the following command:
taskkill /f /im something.exe
I read that /f
forces the task to close, but what does /im
do?
It tells
taskkill
that the next parametersomething.exe
is an image name, a.k.a executable nameIf you type the executable name and a
/?
switch at the command line, there is typically help information available. Doing so withtaskkill /?
provides the following, for instance:You can also find this information, as well as documentation for most of the other command-line utilities, in the Microsoft TechNet Command-Line Reference
it allows you to kill a task based on the image name like taskkill /im iexplore.exe or taskkill /im notepad.exe
im
is "image process name" example/f /im notepad.exe
is specified to kill image process name (program) notepad.exeSee the doc : it will close all running tasks using the executable file
something.exe
, more or less like linux'killall