I have a GUI with buttons. When the IP Address button is pressed, it runs the script (below) and displays the IP Address in a window.
Now, I would like the window to display all of the following information: IP Address, Default Gateway & DNS Servers.
What do I need to add to show them all?
Thanks.
/////////// Start
Func IP1Pressed()
$IP_Address = _RunStdOutRead('ipconfig /all')
$IP_Address = StringRegExpReplace($IP_Address, "(?i)(?s).*IP.*?(\d+\.\d+\.\d+\.\d+).*$", "\1"