I'm surfing in an internet cafe.
If I use taskkill /f /im Explorer.exe, it will end the system's desktop process explorer.exe together. Reloading explorer will cause the icon of the billing system in the system tray to be invisible and unable to check out.
Of course, I might first use tasklist to find the PID value of the Explorer.exe process (here, the difference between the system process and the keyword blocking process name is that the system process is all lowercase, and the first letter of the keyword blocking process is uppercase, so I can clearly judge which one is the one to end), and then use taskkill /f /pid +PID value to end it.
But because the system has made a lot of restrictions, I find it tedious to check like this every time.
I want to ask if it is possible to first use tasklist to list the process information, then use the find function to find the PID value of the keyword process, and then use taskkill to end the process by calling the found value?