Sign in to follow this  
Followers 0
E1M1

Is there better way to restart adapter?

6 posts in this topic




what do you want to do with your connection ?

Perhaps is there another way than clicking...


AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I want to restart because my computer wont connect to inet after standby. And this is what helps it.

Edited by E1M1

edited

Share this post


Link to post
Share on other sites

Not tested but i think this one should work:

RunWait(@COMSPEC & " /c netsh interface set interface 'Local Area Connection' DISABLED")
RunWait(@COMSPEC & " /c netsh interface set interface 'Local Area Connection' enable)")
RunWait(@COMSPEC & " /c ipconfig /release")
RunWait(@COMSPEC & " /c ipconfig /renew")
RunWait(@COMSPEC & " /c ipconfig /flushdns")

post results plz!

Share this post


Link to post
Share on other sites

not working... i dont know why. I have tried that before...

C:\Windows\system32>netsh interface set interface 'Local Area Connection' DISABL

ED"

Area is not an acceptable value for admin.

The parameter is incorrect.

C:\Windows\system32>


edited

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0