2009-08-14

Upload your DHCP IP to FTP server

1) create ip_ftp.bat
====ip_ftp.bat ==========

@echo off
curl.exe http://whatismyip.com/automation/n09230945NL.asp > ip.txt
ftp.exe -s:ftp.txt.bat
2) create ftp.txt.bat
==== ftp.txt.bat ==========
open $ftpserver
$ftpuser
$password
put "ip.txt"
bye
3) download curl.exe to the same fold
4) Run ip_ftp.bat
5) Check if upload success by "curl.exe $server/ip.txt" (your IP will be shown)
6) Put your script into scheduled tasks

No comments:

Post a Comment