ftplogon "url given by JPMC" /user=YourUserName /servertype=SFTP /keyauth /trust=all ;; Encrypt and upload files ftpcd "incoming" workingdir "c:\JPMC\uploads" :upload_loop getnextfile "*" /oldest IFERROR= $ERROR_NO_FILE_FOUND goto download_files set encrypted_file = %nextfile + ".pgp" PGPENCRYPT %nextfile encrypted_file /user="JPMC" sendfile encrypted_file /delete delete %nextfile goto upload_loop :download_files ;; Download and decrypt files ftpcd "../outgoing" workingdir "c:\JPMC\downloads" getsitefile "*" /oldest IFERROR= $ERROR_NO_FILE_FOUND goto done rcvfile %sitefile /delete set decrypted_file = %sitefile setright ext = decrypted_file 4 /split pgpdecrypt %sitefile decrypted_file delete %sitefile :done FTPLOGOFF exit