How to know which SSID I am connected in Windows batch file?
问题 For now, I have 2 batch file which turns on and off proxy using Registry Editor Like reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" ^ /v ProxyEnable /t REG_DWORD /d 0 /f But, I read some where that it is possible to turn on or off proxy based on the network you are connected? So, if I can get the SSID name I can keep this in if else condtion 回答1: To simply get the SSID do: netsh wlan show interface | findstr /i "SSID" to set the first one as a variable use a for