title: Wifi batch file
body: <p>I'm trying to make a batch file so I don't have to keep retyping code whenever I turn on my computer. The code I put in is to make a virtual router with my computer, which makes my computer into a homepass (the software that I normally run is giving me errors, so I have to do it the hard way now).</p>
  
  <p>Anyways, below is the code I normally run in CMD in admin mode.</p>
  
  <pre><code>netsh
  wlan
  stop hostednetwork
  set hostednetwork ssid="attwifi"
  set hostednetwork key=1234567890
  start hostednetwork
  </code></pre>
  
  <p>Whenever I try to run this in a batch file, the file doesn't put in anything after the first command. (It's as if I typed in "netsh" and pressed enter). Is there a way to run this?</p>
  
  <p>On top of that, is there a way I can get the batch file to open up Network Connections? Sometimes I have to tell my computer to share the net from my main WiFi card to the virtual router. Below is a directory to Network Connections
  Control Panel\Network and Internet\Network Connections</p>
  
  <p>Also, is there any way to run this batch file when Windows first starts up?</p>