win10批量结束进程

本文最后更新于 2023年9月22日。

打开命令提示符后输入:“`

taskkill /f /im notepad.exe

这里的notepad.exe是进程的名称,具体需要关闭的自己查看,按Enter.

对于tkinter关闭后的残余进程虽然名称是tkinter界面名称,但是要关闭需要关闭python进程才有效:

taskkill /f /im Python.exe

否则报错,找不到进程。

[cmd: ['D:\\pf1_system\\Python3.6.1\\python.exe', '-i', '-u', 'F:\\pc_home_work\\pyfile\\plot_zoom_220525.py']]
[dir: F:\pc_home_work\pyfile]
[path: D:\pf\python;D:\pf\python\Scripts;D:\pf1_system\Python3.6.1\Scripts\;D:\pf1_system\Python3.6.1\;D:\pf1_system\python2.7.14\Scripts;D:\pf1_system\python2.7.14\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;D:\pf1_system\JDK8\bin;C:\Program Files\MATLAB\R2016a\runtime\win64;C:\Program Files\MATLAB\R2016a\bin;C:\Program Files\MATLAB\R2016a\polyspace\bin;D:\pf1_system\PuTTy\;D:\MySQL_php_apa\php-5.6.36-Win32-VC11-x64;D:\MySQL_php_apa\php-5.6.36-Win32-VC11-x64\ext;C:\WINDOWS\System32\OpenSSH\;D:\phpStudy\PHPTutorial\MySQL\bin;C:\Program Files\OpenSSL-Win64\bin;C:\Program Files\Common Files\Autodesk Shared\;D:\pf1_system\Python3.6.1\Lib\site-packages\cmake\data\bin;D:\pf6_tool\Git\bin;D:\pf6_tool\Git\mingw64\libexec\git-core;D:\pf6_tool\heroku\bin;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin\;C:\Program Files\IVI Foundation\VISA\Win64\Bin\;D:\pf5_appli\NI circuit design suit14\Shared\LabVIEW CLI;C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin;D:\pf6_tool\pandoc\;D:\pf\nodejs\;C:\ProgramData\chocolatey\bin;D:\pf4_green\PKG-CONFIG;D:\pf4_green\PKG-CONFIG\bin;C:\Users\JOSE\AppData\Local\pnpm;C:\Users\JOSE\.cargo\bin;D:\pf\python\Scripts\;D:\pf\python\;C:\Users\JOSE\AppData\Local\Microsoft\WindowsApps;D:\pf1_system\Bandizip6.14\;C:\s;D:\pf6_tool\heroku\bin;C:\Users\JOSE\AppData\Local\Microsoft\WindowsApps;C:\Users\JOSE\AppData\Local\GitHubDesktop\bin;D:\pf\Fiddler;C:\Users\JOSE\AppData\Roaming\npm;D:\pf\VSCode\bin]