Enable/disable wireless interface in a bat file
I need to create a hotkey that essentially instantly turns off my wireless radio card (whatever it is called), and either reconnects automatically, after a set amount of time, when pressed again OR when I press a different key.
When I press F12, will dissconnect me from the internet, then when I press F11 (or F12) it will reconnect.
After a little research I have come up with ways such as WinX, which opens Mobility centre, but that is not automatic as I still have to press "Turn Wireless Off", I am looking for a key that simply turns it on and off, as found on a lot of laptops.
Some code I found included:
SetTitleMatchMode, 2 #z:: Run %windir%\system32\mblctr.exe /open WinWait, Windows Mobility Center Sleep, 300 Send, !t Sleep, 1000 WinClose, A Return
But this includes Mobility Centre again.