; *****************************************************
; Example4.ftp
; =============
; This example sends the systems "Autoexec.bat" file to
; a remote site and gives the file a unique name by
; implementing the DATE and TIME functions.
; This is just a sample - you are unable to execute
; the script unchanged... ;o)
; *****************************************************
; ******* First provide the Login information...
; DialEntry="xxxxxxx"
; DialLoginUser="xxxxxxx"
; DialLoginPassword="xxxxxxx"
Host="ftp.transsoft.com"
Port="21"
User="anonymous"
Password="you@your.net"
; Proxy=
; ProxyPort=21
; ******* Timeout in seconds...
Timeout=120
; ******* ...Dial up if not already connected to the Internet...
; Dial
; ******* ...and then connect to FTP host...
connect
; ******* Command sequence...
remote-cd "/pub/incoming"
if local-exists("c:\Autoexec.bat") then
ascii
send "c:\autoexec.bat" "autoexec_[DATE:yyyymmdd][TIME:hhmm].bat"
endif
; ******* Afterwards, disconnect from host!
disconnect
; ******* At last, Hangup Internet connection!
; Hangup