TaskKillByExePath.bat
set currentPath=%cd%
set batPath=%~dp0
cd /d %batPath%
:START
cd ..
cd "Program Files"
:KILL_filezilla_exe
set exePath=%cd%FileZilla FTP Clientfilezilla.exe
set "exePath=%exePath:=\%"
wmic process where "ExecutablePath='%exePath%' " get ProcessId >ProcessIdTemp.txt
type ProcessIdTemp.txt >ProcessIdTemp2.txt
for /F "skip=1 tokens=*" %%i in (ProcessIdTemp2.txt) do (
taskkill /f /pid %%i /t
)
:END
cd /d %currentPath%
最后
以上就是无限宝贝最近收集整理的关于cmd bat 根据进程路径杀进程的全部内容,更多相关cmd内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复