Thursday, February 21, 2008

Useful software to get your dynamic ipaddress on Windows 2000 reboots


Download the sendEmail.exe from http://caspian.dotconf.net/menu/Software/SendEmail/
and put it in some directory and make sure you update the setup.bat file accordingly to reflect the proper directory paths as can be seen below:




Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\>cd C:\Devel\sendemail

C:\Devel\sendemail>dir
Volume in drive C has no label.
Volume Serial Number is 7472-D5BA

Directory of C:\Devel\sendemail

02/20/2008 03:12p .
02/20/2008 03:12p ..
12/21/2006 07:14a 1,531,966 sendEmail.exe
02/20/2008 03:16p 241 sendip.bat
02/21/2008 05:54p 294 ipmsg

C:\Devel\sendemail>type sendip.bat
ipconfig > "C:\Devel\sendemail\ipmsg"
"C:\Devel\sendemail\sendEmail.exe" -f sendmail@kns.com -t yourEmailID@yourcompany.com -u "New ip address" -s rgmapacsmtp.kns.com -o tls=auto -o message-file="C:\Devel\sendemail\ipmsg"

C:\Devel\sendemail>




Now go to your Start --> Settings --> Control Panel --> Scheduled Tasks --> Add Scheduled Task and create a new task in the next window, Browse for location of sendip.bat -> Select "When my Computer Starts" -> Enter your password .

You need to edit the c:\sendmail\sendip.bat and instead of yourEmailID@yourcompany.com put your company's Email-ID .
and instead of rgmapacsmtp.kns.com you need to give you company's smtp server.

Great now you will get your dynamic ip emailed to you when you require to connect to your machine in future.

No comments: