Scripting Example 5

; *****************************************************

; Example5.ftp

; =============

; This example uses Wildcards in filenames ('*' and '?')

; It sends a few textfile to a remote server and then

; retrieves them again to another local folder.

; This is just a sample - you are unable to execute

; the script unchanged... ;o)

; *****************************************************

 

; ******* First provide the Login information...

 

; DialEntry=""

; DialLoginUser=""

; DialLoginPassword=""

 

Host="ftp.yournet.net"

Port=21

User="anonymous"

Password="you@your.net"

 

; ******* Timeout in seconds...

Timeout=60

 

; ******* ...and then connect to FTP host...

; Dial

connect

 

; Force ASCII transfer:

ascii

 

; Force all letters in filenames to LOW caps

ForceUpperOn

 

send "d:\TMail3\FTPClient\*.txt" "upload"

 

; Stop forcing filenames to All LOW caps:

ForceUpperOff

 

get "upload/*.*" "c:\temp"

 

; ******* Afterwards, disconnect from host!

disconnect

 

; ******* At last, Hangup Internet connection!

; Hangup