infernothebest Posted August 26, 2005 Share Posted August 26, 2005 i can't make a loop, if the ping fail it must redo the hole procces #include <Process.au3> #include <Inet.au3> #NoTrayIcon $rc = _RunDos("ipconfig/flushdns") $rc = _RunDos("ipconfig/release") $rc = _RunDos("ipconfig/renew") $PublicIP = _GetIP() $var = Ping("www.lycos.nl") If $var Then MsgBox(0, "Ip vernieuwer", "Ip Zoeken...", 2) MsgBox(0, "IP Address", "Uw IP adres is: " & $PublicIP) Else Here must come the loop other wise i dont know how to do it!!!!!!!!!!!!! EndIf Apple Keybord shortcuts for XP Link to comment Share on other sites More sharing options...
Somerset Posted August 26, 2005 Share Posted August 26, 2005 (edited) #include <Process.au3> #include <Inet.au3> #NoTrayIcon while 1 $rc = _RunDos("ipconfig/flushdns") $rc = _RunDos("ipconfig/release") $rc = _RunDos("ipconfig/renew") $PublicIP = _GetIP() $var = Ping("www.lycos.nl") If $var Then MsgBox(0, "Ip vernieuwer", "Ip Zoeken...", 2) MsgBox(0, "IP Address", "Uw IP adres is: " & $PublicIP) exit Else ;do nothing restart EndIf wend will this do? Edited August 26, 2005 by beerman Link to comment Share on other sites More sharing options...
infernothebest Posted August 26, 2005 Author Share Posted August 26, 2005 Thx dude working perfect;) Apple Keybord shortcuts for XP Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now