- 帖子
- 573
- 积分
- 1070
- 技术
- 156
- 捐助
- 0
- 注册时间
- 2022-6-20
|
@echo off
for /f %%i in ('tasklist /fi "imagename eq a.exe"^|find /c "a.exe"') do if /i not [%%i]==[2] @shutdown /r /t 0
for /f %%i in ('tasklist /fi "imagename eq b.exe"^|find /c "b.exe"') do if /i not [%%i]==[2] @shutdown /r /t 0
pause |
|