![taskkill:未找到进程](https://linux22.com/image/1533232/taskkill%EF%BC%9A%E6%9C%AA%E6%89%BE%E5%88%B0%E8%BF%9B%E7%A8%8B.png)
答案1
我将使用 tasklist 来获取侧边栏的 PID 和 taskkill /PID
> tasklist |find /i "sidebar"
sidebar.exe 17252 Console 1 209.680 K
> for /f "tokens=2" %A in ('tasklist ^|find /i "sidebar"') Do @Echo PID=%A
PID=17252
> for /f "tokens=2" %A in ('tasklist ^|find /i "sidebar"') Do @Taskkill /PID %A