file_upload.ftp
This script connects to the FTP server ftp.myhost.com and uploads some files
# Connect to ftp.myhost.com as myuser OPENHOST("ftp.myhost.com","myuser","123456") # Upload the file notes.txt using # its full path PUTFILE("C:\My Documents\notes.txt") # Change current local directory to # C:\Users\Eli\Documents LOCALCHDIR("C:\Users\Eli\Documents") # Upload the file sales.xls located # in the current local directory PUTFILE("sales.xls") # Upload the file backup.zip located # in the current local directory under # the folder backups. PUTFILE("backups\backup.zip") # Change current remote directory to # remote_images CHDIR("remote_images") # Upload every jpg file in the # subdirectory images # to the remote directory # remote_images PUTFILE("images\*.jpg") # Close the connection CLOSEHOST