Jump to content

Is there better way to restart adapter?


E1M1
 Share

Recommended Posts

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!

Link to comment
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

Link to comment
Share on other sites

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...