The Windows task manager has a column labeled Command Line that shows the command that started the given task, with all the switches and parameters, for example: test.exe -V -A 127.0.0.1 -P 6062 Now I have to identify a certain task that is listening on a certain port and/or was called with a certain switch combination. My aim is to close the selected task, but not others, so if there are multiple
![How to get the command that invoked a task with tasklist?](https://cdn-ak-scissors.b.st-hatena.com/image/square/1903ece89af850aed3e9777e774c51491b959a61/height=288;version=1;width=512/https%3A%2F%2Fcdn.sstatic.net%2FSites%2Fsuperuser%2FImg%2Fapple-touch-icon%402.png%3Fv%3De869e4459439)