PC_LOAD_LETTER Posted April 26, 2008 Share Posted April 26, 2008 I have no idea why people use whatismyip.com. It's much easier to use whatismyip.orghttp://www.ipchicken.com/ is funnier Link to comment Share on other sites More sharing options...
Redhatcc Posted April 26, 2008 Author Share Posted April 26, 2008 Why are you trying to find your IP in a bat filewell its a little project were messing with here at work. kinda confusing but.. i'll mess around with it and see what i can come up with to get this to launch in a batch and save to txt.but any ideas would be helpful Link to comment Share on other sites More sharing options...
mooms Posted April 26, 2008 Share Posted April 26, 2008 i personaly use myip.dk (easier to remember) Link to comment Share on other sites More sharing options...
Mijzelf Posted April 26, 2008 Share Posted April 26, 2008 Create a file getip.js:var request = new ActiveXObject("Msxml2.XMLHTTP");var notyetready = 1;request.onreadystatechange=function(){ if(request.readyState==4) { WScript.Echo(request.responseText); notyetready = 0; }}request.open( "GET", "http://www.whatismyip.com/automation/n09230945.asp", true );request.send(null);while( notyetready ){ WScript.Sleep( 100 );}Create a batch file:cscript getip.js >ip.txtDone! Link to comment Share on other sites More sharing options...
Redhatcc Posted April 28, 2008 Author Share Posted April 28, 2008 Very nice that works perfect... doesnt work on vista lol but im sure i'll never need it on there.... Thanks!! 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