批量关闭进程(bat方式)

1、创建endTask.txt(需要关闭进程的名字)

例如:关闭向日葵控制端、notepad

SunloginRemote.exe
notepad++.exe

2、 创建bat批处理

PS:如果报错说没有访问权限,对bat右键-管理者权限运行就可以解决

@echo off
for /f "delims=, " %%i in (C:\Users\Administrator\Desktop\endTask.txt) do taskkill /f /im %%i
echo 进程终结完成
pause

vb.net结束指定进程 vbs结束进程代码_vb.net结束指定进程

关闭指定进程(vbs方式)

1、创建test.vbs,双击运行。

CreateObject("WScript.Shell").Run "taskkill /f /im notepad++.exe", 0