AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Restarting Wireless network card driver

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Gast w/o Nick
Guest





PostPosted: Thu Dec 06, 2007 11:36 pm    Post subject: Restarting Wireless network card driver Reply with quote

Hi,

I'm looking for an easy way to restart my wireless lan on my
laptop when it looses the network. Manually, I deactivate the network
and then activate it again.

Any easy way of doing this in AHK other than using the GUI?

I've seen posts about DEVCON here
(http://www.autohotkey.com/forum/viewtopic.php?p=8838#8838)

Anybody understand how to restart the wireless lan with this tool?
Back to top
instantrunoff



Joined: 13 Jan 2008
Posts: 76

PostPosted: Fri Jan 25, 2008 6:13 pm    Post subject: Reply with quote

This is actually kind of simple, luckily:

In a command prompt (btw, I keep tools like this in a folder that I've added to PATH):
Code:

devcon hwids =net


Look for your adapter in the list and make a note of a pretty long ID

you can then add that id to this:

Code:
devcon restart ID
where "ID" is the ID you found above, and this command will restart your network adapter. In an AHK script, put "Run" and any path if necessary in front of devcon[/code]
Back to top
View user's profile Send private message Visit poster's website
k3ph



Joined: 21 Jul 2006
Posts: 99

PostPosted: Thu May 15, 2008 6:44 pm    Post subject: Reply with quote

why not using ipconfig ?
Code:
ipconfig /release "wireless"
ipconfig /renew "wireless"

where wireless is the name of ur wireless card (or wired card)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group