批处理 netsh wlan start hostednetwork 命令 每隔一分钟运行后隐藏cmd窗口,bat文件

2025-03-07 05:35:27
推荐回答(1个)
回答1:

@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
netsh wlan start hostednetwork
ping 127.1 -n 61>nul
goto begin
rem 保存为bat文件后,以管理员身份运行