# WiFi相关指令 获取WiFi列表 netsh wlan show networks 获取到的可能不完整,刷新列表可以通过先禁用WiFi,再启用WiFi(需要管理员权限运行) netsh interface set interface name="wlan" admin=disable netsh interface set interface name="wlan" admin=enable 获取当前连接WiFi netsh wlan show interfaces | findstr /C:"SSID" 连接指定WiFi netsh wlan connect name={inWiFi} 断开WiFi netsh wlan disconnect