Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
For anyone not familiar with what i mean... info like this:
IP Address : 210.177.x.x [ 210.177.x.x ] ISP : PCCW Business Internet Access Organization : UNITED DAILY NEWS HK BUREAU LTD Location : HK HK, Hong Kong City : -, - -
Here is some WinBatch code that can lookup and external ipAddress and grab the country name.
ipaddr = '66.94.231.98' site = 'http://www.showmyip.com/xml/?ip=' : ipaddr XMLHTTP = CreateObject( 'Msxml2.XMLHTTP' ) XMLHTTP.Open("GET", site, @false) XMLHTTP.Send("") ;Pause("Response", XMLHTTP.responseText) xmlDoc = CreateObject("Microsoft.XMLDOM") xmlDoc.async = @false xmlDoc.loadXML(XMLHTTP.responseText) root = xmlDoc.documentElement countryList = xmlDoc.getElementsByTagName("lookup_country") country = countryList.item(0).firstChild.nodeValue Message( ipaddr, 'Country: ':country ) Exit
Article ID: W17471
File Created: 2008:04:10:15:11:16
Last Updated: 2008:04:10:15:11:16