cmd_line_params.ftp

This script uploads a file whose name is passed through the command line. It uses the the command GETPARAM to retrieve this parameter.

# This script is used for uploading a specified file
# to the FTP server. Use it this way:
# ScriptFTP.exe this_script.ftp the_file_to_upload
 
# Note:
# The GETPARAM command was added in ScriptFTP 2.1
# Build March 14th 2006.
 
$param3 = GETPARAM(3)
 
PRINT("Uploading file ".$param3)
 
OPENHOST("127.0.0.1","carl","123456")
 
PUTFILE($param3)
 
CLOSEHOST