Enable/disable wireless interface in a bat file
Posted
by Herms
on Super User
See other posts from Super User
or by Herms
Published on 2010-02-03T21:04:34Z
Indexed on
2010/05/13
5:25 UTC
Read the original article
Hit count: 246
batch
|networking
Is there a way to enable/disable a wireless network interface via the command line (so I can put it in a bat file)?
When I'm in the office I use a wired connection, but Windows still occasionally bugs me about my wireless connection not being connected (even though I turned off the option for notifying me when there's no connectivity). I'm guessing the only way to stop it from bugging me is to disable the interface, but I'd rather not have to go into the network settings every time I need to do so.
I'd like to set up a bat file or a shortcut that I can use to enable/disable the wireless (preferably a single one that toggles the current state), and then just set up a keyboard shortcut for that. I just have no idea how to do so from the command line.
© Super User or respective owner