Zoomed Image

AMSX Scripting Language - Command : FtpSend

Summary

Upload a file to an FTP server

Description

Connects to an FTP server and uploads the specified file. If username or password are not provided, they are read from the "ftpusername" and "ftppassword" special options. The password is decrypted if it is stored in the UNICODE: encrypted format. The file is uploaded into the optional target subfolder.

Parameters

ParameterDescription
cmdFTP server address (e.g. "ftp.example.com")
Argument 0Full path of the local file to upload
Argument 1FTP username; leave blank to use the ftpusername special option
Argument 2FTP password; leave blank to use the ftppassword special option (supports UNICODE: encrypted format)
Argument 3FTP port number; leave blank to default to port 21
Argument 4Target subfolder on the FTP server; leave blank to upload to the root

Syntax


FtpSend "FTP server address (e.g. "ftp.example.com")", "Full path of the local file to upload", "FTP username; leave blank to use the ftpusername special option", "FTP password; leave blank to use the ftppassword special option (supports UNICODE: encrypted format)", "FTP port number; leave blank to default to port 21", "Target subfolder on the FTP server; leave blank to upload to the root"

Return to the AMSX Command Reference