Jump to content

IP renew and display


Recommended Posts

;renew IP and display all IPs
$iRenew = runwait(@ComSpec & " /c ipconfig /renew","",@SW_HIDE)
if $irenew <> 0 Then 
   MsgBox(0,"IP Renewer", "Error returned from IPconfig /renew: " & $irenew)
   Exit
EndIf
MsgBox(0, "IP renewer", "Your Renewed IP addresses are:" & @LF _
&  @IPAddress1 & @LF & @IPAddress2 & @LF & @IPAddress3 & @LF & @IPAddress4)

"I'm not even supposed to be here today!" -Dante (Hicks)

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...