网卡重启脚本

软件启动后,链接网络的网卡就会卡死影响远程操作,故此有了此脚本

bat脚本文件

注意细节:保存时存为ANSI格式!

find 检测软件是否启动,启动后再执行网卡重启的操作

@echo off
setlocal enabledelayedexpansion

:loop
tasklist | find "LEDEasyVideo.exe" >nul
if %errorlevel% equ 0 (
    echo LEDEasyVideo thread is running. Disabling network adapter...
    netsh interface set interface "以太网" admin=disable
    timeout /t 60
    netsh interface set interface "以太网" admin=enable
    goto end
) else (
    echo LEDEasyVideo thread is not running. Waiting for 30 seconds...
    timeout /t 30
    goto loop
)

:end
echo Script finished.
endlocal

消息盒子

# 暂无消息 #

只显示最新10条未读和已读信息