批处理 处理wifi掉线问题 win10-win11 下无线网卡 偶尔掉线问题

# 批处理 处理wifi掉线问题 win10-win11 下无线网卡 偶尔掉线问题

批处理文件

@echo off %1

mshta vbscript:CreateObject(“Shell.Application”).ShellExecute(“cmd.exe”,"/c %~s0 ::","",“runas”,1)(window.close)&&exit :Begin ping www.baidu.com if errorlevel 1 goto Reboot if errorlevel 0 goto Continue :Continue goto Begin: :Reboot netsh interface set interface WLAN disabled netsh interface set interface WLAN enable echo %date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2% 断网已重启,等待延时8秒…»log.txt

:设置延时等待

ping -n 8 127.0.0.1 >nul

goto Begin

打开任务计划程序(taskschd.msc) 创建基本计划任务 触发器 选 计算机启动时 最后选择 不管用户是否登录 使用最高权限 在条件里面 关闭 只有使用交流电 这个 设置里面 关掉三天什么的

Licensed under CC BY-NC-SA 4.0
最后更新于 2022-09-07 19:56 UTC
comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计