Jump to content
Sign in to follow this  
E1M1

Is there better way to restart adapter?

Recommended Posts

wakillon

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
E1M1

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
HavikTech

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
E1M1

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
Authenticity

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

Better suited for a batch file.

  • Like 1

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.