Monday, June 23, 2008

Disconnect from wireless via command prompt

For whatever reason, I have to disconnect and reconnnect my wireless as I sleep and wake-up my laptop about campus.

Microsoft's netsh program is a panacea of sorts:
Disconnect from a wireless network by using a command prompt

At a command prompt, type the following, and then press ENTER:

netsh wlan disconnect [[interface=]interface]

interface Specifies the interface whose current wireless connection is to be disconnected. Not required if you only have one wireless interface installed on your computer.

---
So, I see Identifying... and I'm impatient.
Double-click my batch file: (Pause to wait long enough for the wireless to .. do something.
netsh wlan disconnect
pause
netsh wlan connect MyWirelessSSID

No comments:

Blog Archive