FTP example:
ftp1.bat
@echo off
ping -n 1 -w 1 [.dynhost.net] > [filename.html]
type [filename.html]
ftp -n -v -s:ftp1.ba1
rem ftp -n -s:ftp1.ba1
ftp1.ba1
open [www.host.com]
user [username] [password]
put [filename.html] [/www/filename.html]
bye