I am using a usb wireless network device on my windows 8 desktop to connect a laptop (and chromecast). Whenever I restart my desktop for any reason, I need to define and start my ad hoc wireless network again by opening a cmd prompt (with admin power) and issuing two commands. I did a little research and found a folder in windows to place user "startup" commands/apps, so I created a file named define_wifi.bat and placed it here:
"C:\Users\Melanie\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\define_wifi.bat".
The file contains the following:
netsh wlan set hostednetwork mode=allow ssid=wifinet key=wifipass
netsh start hostednetwork
When I log into windows (on my admin account), about 20 seconds later, I see the cmd screen appear for a split second and then disappear, so I know the file is at least "seen" by windows, but apparently, my wireless network is not defined/started. What is wrong or what can I do to troubleshoot this issue? Thanks ahead of time.
Note: I have a technical background, but don't know all the ins and outs of Windows.