I can't seem to find this question anywhere else, but, how do I retrieve the name of the currently connected wireless network. If it's necessary, my aim of the program is to disconnect from the internet for 10 seconds, then to reconnect. Here's my code:
@echo off
ipconfig /release
timeout /t 10 /nobreak
netsh wlan connect %Network%
I just need help getting the exact name of the wireless network that I am currently connected to, to fit in %Network%. I'd like any help.
I'm also a beginner in batch so yeah.