Flux rss
Search : in
By : Relevance Date Username
Statut : Not resolved

Help! Batch File needed for Router IP

neilos, on Saturday 31 May 2008 à 15:49:28
Hello,


Hi all, Sorry if this is the wrong location...

Anyway i have a slight problem and loooking for some help!!

OK, I need a bat file to run daily to tell me what my "ADSL" Routers IP is (ie. 91.80. etc etc) and not the local IP of 192.168 etc.

This is because sky (isp) does not support static IPs so this changes when the router gets rebooted.

Can you help?

Neil.
Configuration: Windows XP
Internet Explorer 6.0
Reply to neilos  Report this message to moderators Go to last message

1


  • This message seems useful, vote!
  • Report this message to moderators
 Flo-TLSC, on Sunday 6 July 2008 à 09:09:36
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
Reply to Flo-TLSC

Résultats pour Help! Batch File needed for Router IP

Batch file to enter password protection Hello, I use a batch file to open Internet Explorer to a Password protected page every morning when my computer starts. My user name and password are saved and then I just have to press enter. My question is, is there a way for the batch file to press... en.kioskea.net/forum/affich-13800-batch-file-to-enter-password-protection
Telnet script or batch file (Solved) Hello, I want to build a script or a batch file that I can set to run on a daily basis that will telnet to a device and then send commands to it. Basically it would need to telnet and then run a command and exit out of the device. I was thinking I... en.kioskea.net/forum/affich-4262-telnet-script-or-batch-file
Help with Loop in batch File using input from (Solved) Hi Together I try to scan some PCs remotely and do want to automize this task. I created a batch file doing a good job, however, it scans only one pc and then I do need to change the target system name. I now want to create a comma seperated list,... en.kioskea.net/forum/affich-15768-help-with-loop-in-batch-file-using-input-from

Résultats pour Help! Batch File needed for Router IP

Managing iPod Without iTunesManaging iPod Without iTunes Sharepod How to install Sharepod on your computer? How to use Sharepod? Yamipod Amarok How to install Amarok using Yast on your computer? Gtkpod Ephpod How to install Ephpod on your computer Managing songs... en.kioskea.net/faq/sujet-191-managing-ipod-without-itunes
Create and Open a RAR fileCreate and Open a RAR file How to create a RAR file How to open a RAR file RAR is an archive file format that is used during data compression, error recovery and file spanning. RAR is the acronym for Roshal Archive, inspired by the... en.kioskea.net/faq/sujet-143-create-and-open-a-rar-file
How to convert M3U to MP3 file?How to convert M3U to MP3 file? Axara Audio Converter Introduction M3U is a standard multimedia playlist that stores first designated for mp3’s. Originally implemented in WinAMP and actually supported in many applications like Juk ,... en.kioskea.net/faq/sujet-339-how-to-convert-m3u-to-mp3-file

Résultats pour Help! Batch File needed for Router IP

DOS commands in a batch fileHello, I'm after a batch file that will press a button. I have used " rundll32.exe shell32.dll, Control_RunDLL inetcpl.cpl" to successfully display/access Internet Options. Now how to select the General tab ? [ set the focus to General Tab ?] and... en.kioskea.net/forum/affich-4105-dos-commands-in-a-batch-file
Batch file for one current date in text fileHello, I need a batch file to get the current date and time of my computer and put it in a text file every time I run it.But I need the most current date&time to replace the previous within the same text file, so that my file can have only one record,... en.kioskea.net/forum/affich-16514-batch-file-for-one-current-date-in-text-file

Résultats pour Help! Batch File needed for Router IP

Download Instant File Name SearchAlthough mode searches already exist on Windows, sometimes more definite tools for specific tasks are needed. Instant Name Search Goes off search files by name on your computer or on a network instantly. It supports the Boolean operators (AND,or,... en.kioskea.net/telecharger/telecharger-630-instant-file-name-search

Résultats pour Help! Batch File needed for Router IP

Gadget lovers flip over new iPhone 3GA customer shows Apple's new 3G iPhone mobile handset at the Softbank shop in Tokyo on July 11. Apple's international launch of its iPhone 3G has begun in several Asian countries as a freshly-opened "App Store" tempted fans with additional... en.kioskea.net/actualites/gadget-lovers-flip-over-new-iphone-3g-10529-actualite.php3

Résultats pour Help! Batch File needed for Router IP

Network equipment - Router A router is a device for connecting computer networks to one another, used for handling the routing of packets between two networks, or to determine the path that a data packet shall take. When a user enters a URL, the Web client (the browser)... en.kioskea.net/lan/routeurs.php3
Operating systems - Files A file is a suite of binary information, i.e. a suite from 0 to 1. This file may be stored in order to keep a record of this information. A text file is a file comprising characters stored in the form of octets. This file is saved on the hard drive... en.kioskea.net/systemes/fichier.php3