title: How do I retrieve the name of the currently connected wireless network in batch?
body: <p>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:</p>
  <pre class="lang-bat prettyprint-override"><code>@echo off
  ipconfig /release
  timeout /t 10 /nobreak
  netsh wlan connect %Network%
  </code></pre>
  <p>I just need help getting the exact name of the wireless network that I am currently connected to, to fit in <code>%Network%</code>. I'd like any help.</p>
  <p>I'm also a beginner in batch so yeah.</p>