title: Using "SET /P" inside an IF statement
body: <p>I'm creating a batch to turn my laptop into wifi an make my life easier to type lines in cmd each time. </p>
  
  <p>The trouble is the wifi name always get set to <strong>key=</strong> insted of the one which I enter.</p>
  
  <p>Here is what I did:</p>
  
  <pre><code>@echo OFF
  set /p option="Enter 1 to create wifi, Enter 2 to stop wifi "
  IF %option% EQU 1 (
      set /p id="Enter wifi Name:"
      set /p key="Set password:"
      netsh wlan set hostednetwork mode=allow ssid = %id% key = %key%
      netsh wlan start hostednetwork
  )
  
  IF %option% EQU 2 (
  netsh wlan set hostednetwork mode=disallow
  )
  
  timeout /t 5
  </code></pre>