如何用bat命令获取网卡启动和禁止的状态,就是获取网卡目前的运行状态?

如何用bat命令获取网卡启动和禁止的状态,就是获取网卡目前的运行状态

第1个回答  2020-09-22

    @echo hello,world

    netsh interface set interface "以太网" disabled

    @echo start sleep

    choice /t 5 /d y /n >nul

    @echo start sleep end

    netsh interface set interface "以太网" enabled

    @echo restart end

    pause

本回答被网友采纳