|
|
楼主 |
发表于 2021-3-31 12:15:46
|
显示全部楼层
等待 0 秒,按 CTRL+C 退出 ...
成功: 已终止进程 "chrome.exe",其 PID 为 1740。
成功: 已终止进程 "chrome.exe",其 PID 为 9468。
成功: 已终止进程 "chrome.exe",其 PID 为 3728。
错误: 无法终止进程 "chrome.exe",其 PID 为 1764。
原因: 没有此任务的实例在运行。
成功: 已终止进程 "chrome.exe",其 PID 为 11736。
成功: 已终止进程 "chrome.exe",其 PID 为 11936。
错误: 无法终止进程 "chrome.exe",其 PID 为 13728。
原因: 没有此任务的实例在运行。
成功: 已终止进程 "chrome.exe",其 PID 为 13340。
成功: 已终止进程 "chrome.exe",其 PID 为 6156。
成功: 已终止进程 "chrome.exe",其 PID 为 9856。
成功: 已终止进程 "chrome.exe",其 PID 为 476。
成功: 已终止进程 "chrome.exe",其 PID 为 1268。
成功: 已终止进程 "chrome.exe",其 PID 为 14584。
成功: 已终止进程 "chrome.exe",其 PID 为 14024。
成功: 已终止进程 "chrome.exe",其 PID 为 1936。
成功: 已终止进程 "chrome.exe",其 PID 为 7440。
成功: 已终止进程 "chrome.exe",其 PID 为 12460。
成功: 已终止进程 "chrome.exe",其 PID 为 9772。
错误: 无法终止进程 "chrome.exe",其 PID 为 6748。
原因: 没有此任务的实例在运行。
成功: 已终止进程 "chrome.exe",其 PID 为 15084。
E:\PLDown>(
chrome.exe "https://www.baidu.com/"
echo chrome.exe "https://www.baidu.com/"
set /a "n+=1"
if !n! LSS 10 (
REM 暂停20秒
timeout /t 10 /nobreak
) else (
REM 暂停10分钟
timeout /t 60 /nobreak
REM 结束chrome
taskkill /im "chrome.exe" /f
set "n=0"
)
) |
|