Scripting Example 15

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

; Example15.ftp

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

; This example shows how to access the command line

; parameters to create a FTP "Send-To" menu in

; Windows Explorer (File Manager)!

; To create such an entry, please edit this example to

; access your own FTP server where you have complete

; "Write" authentication.

; THEN: Use the "Power" menu to create a "Send-To"

; Menu item.

; -----------------------------------------------------

; NOTE: This is just a sample - for your information ;o)

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

 

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

 

Host="ftp.yourhost.net"

Port="21"

User="your.username"

Password="your.password "

 

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

Timeout=120

 

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

connect

 

; ******* Command sequence...

 

binary

 

Input SendType "Type the word: 'ascii' if you want ASCII transfer:"

 

%%SendType%%

 

remote-cd "/myfiles"

 

ALLPARAMS send "%%ALLPAR%%" "%%NamePar%%"

 

; Now disconnect from FTP server...

Disconnect