1: $r = [System.Net.WebRequest]::Create("http://automation.whatismyip.com/n09230945.asp")
2: $resp = $r.GetResponse()
3: $reqstream = $resp.GetResponseStream()
4: $sr = new-object System.IO.StreamReader $reqstream
5: $result = $sr.ReadToEnd()
6: write-host $result
Spanish Version
1 comment:
Link has changed to:
http://automation.whatismyip.com/n09230945.asp
Post a Comment