Filename: update.cmd
@echo off
cd /d %~dp0
echo ----------------------------- GETTING IP -----------------------------
wget "http://myip.dtdns.com" -o getip.log
type getip.log
del getip.log
if exist index.html (
  set /p MYIP=<index.html
  echo MYIP=%MYIP%
  del index.html
  echo ----------------------------- SETTING IP -----------------------------
  wget "http://www.dtdns.com/api/autodns.cfm?id={domain}&pw={password}&ip=%MYIP%" -o setip.log
  if exist "autodns.cfm*" del autodns.cfm*
  type setip.log
  del setip.log
)
				This entry was posted
				on Friday, July 08, 2011
				and is filed under  
				
CMD,
Projects,
Tools
				.
				
				You can leave a response
				and follow any responses to this entry through the 
Subscribe to:
Post Comments (Atom)
.
				
 

 ?l'ta?m
?l'ta?m 
			
0 comments