Help! Batch File needed for Router IP
Solved/Closed
neilos
Posts
1
Registration date
Friday May 30, 2008
Status
Member
Last seen
May 31, 2008
-
May 31, 2008 at 10:49 AM
Happy - Jun 17, 2013 at 06:06 PM
Happy - Jun 17, 2013 at 06:06 PM
Related:
- Help! Batch File needed for Router IP
- Windows 10 iso file download 64-bit - Download - Windows
- Fifa 21 zip file download for pc - Download - Sports
- Gta 5 exe file download for pc - Download - Action and adventure
- What is my ip on my phone - Guide
- Dvi file - Guide
1 response
Right click desktop and select new txt document. Open the newly created .txt file and paste the following code into it:
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 );
}
Safe your new .txt file. Then rename it: getip.js
Now make another new .txt file and paste this into it:
cscript getip.js >ip.txt
Safe the file and then rename it: GetIP.bat
Run the .bat file and it will create a .txt file called IP.txt which contains your 'internet IP address' or external IP address.
Good luck, Flo
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 );
}
Safe your new .txt file. Then rename it: getip.js
Now make another new .txt file and paste this into it:
cscript getip.js >ip.txt
Safe the file and then rename it: GetIP.bat
Run the .bat file and it will create a .txt file called IP.txt which contains your 'internet IP address' or external IP address.
Good luck, Flo
Jun 17, 2013 at 06:06 PM