Microsoft Windows [Version 6.2.9200] (c) 2012 Microsoft Corporation. All rights reserved. C:\OracleHomes\agent11g\agent11g\sysman\emd>e: E:\>cd Test\ECSI_Perkins_Loan_Test\Scripts E:\Test\ECSI_Perkins_Loan_Test\Scripts>encrypt_rename_upload_backup_perkins_loan_award_file.bat E:\Test\ECSI_Perkins_Loan_Test\Scripts>set ERR=0 E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem ***************************************************************************************** E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem ** Call GnuPG to encrypt the perkins loan award file. E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem ** Set default recipient with recipient key E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem ** (so there is no interactive question asking if I want to use key) and encrypt file. E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem ** When going live change filename to bldpromIG*.csv & remove -v & --debug-all. E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem ***************************************************************************************** E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem The original encryption command on Media: E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem gpg -v --debug-all --batch --default-recipient 21CBF00F --encrypt E:\sftproot\perkins_loan\TESTbldpromIG.csv E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem The encryption command I ran from the command prompt on ict-transfer: E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem E:\Program Files\GnuPG>gpg --default-recipient 21CBF00F --encrypt E:\Test\ECSI_Perkins_Loan_Test\TESTbldpromIG.csv E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem The updated encryption command for ict-transfer: E:\Test\ECSI_Perkins_Loan_Test\Scripts>gpg -vvvvv --debug-all --batch --default-recipient 21CBF00F --encrypt E:\Test\ECSI_Perkins_Loan_Test\TESTbldpromIG.csv gpg: NOTE: no default option file `C:/Windows/system32/config/systemprofile/AppData/Roaming/gnupg/gpg.conf' gpg: using character set `CP437' gpg: enabled debug flags: packet mpi cipher filter iobuf memory cache memstat trust hashing extprog cardio assuan gpg: DBG: fd_cache_open (C:/Windows/system32/config/systemprofile/AppData/Roaming/gnupg/pubring.gpg) not cached gpg: DBG: iobuf-1.0: open `C:/Windows/system32/config/systemprofile/AppData/Roaming/gnupg/pubring.gpg' fd=268 gpg: DBG: iobuf-1.0: underflow: req=8192 gpg: DBG: iobuf-1.0: underflow: got=0 rc=-1 gpg: DBG: C:/Windows/system32/config/systemprofile/AppData/Roaming/gnupg/pubring.gpg: close handle 0000010C gpg: DBG: fd_cache_close (C:/Windows/system32/config/systemprofile/AppData/Roaming/gnupg/pubring.gpg) new slot created gpg: DBG: iobuf-1.0: underflow: eof gpg: DBG: iobuf-1.0: close `?' gpg: unknown default recipient "21CBF00F" gpg: E:\\Test\\ECSI_Perkins_Loan_Test\\TESTbldpromIG.csv: encryption failed: No public key random usage: poolsize=600 mixed=0 polls=0/0 added=0/0 outmix=0 getlvl1=0/0 getlvl2=0/0 secmem usage: 0/32768 bytes in 0 blocks E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem ***************************************************************************************** E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem ** Rename filename to include current date per ECSI's filenaming convention. E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem ***************************************************************************************** E:\Test\ECSI_Perkins_Loan_Test\Scripts>REN E:\Test\ECSI_Perkins_Loan_Test\TESTbldpromIG.csv.gpg TESTbldpromIG.20150707.csv.gpg The system cannot find the file specified. E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem ***************************************************************************************** E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem ** Call WinSCP to upload the encrypted file to ECSI's server. E:\Test\ECSI_Perkins_Loan_Test\Scripts>rem ***************************************************************************************** E:\Test\ECSI_Perkins_Loan_Test\Scripts>cd E:\Program Files\WinSCP E:\Program Files\WinSCP>winscp /script=E:\Test\ECSI_Perkins_Loan_Test\Scripts\upload_perkins_loan_award_file_script.txt /log="E:\Test\ECSI_Perkins_Loan_Test\Logs\WinSCP_encryptaward.log" batch on reconnecttime 120 confirm off Searching for host... Connecting to host... Authenticating... Using username "acig". Authenticating with pre-entered password. Authenticated. Starting the session... Session started. Active session: [1] acig@ftp.ecsi.net transfer binary No file matching 'TESTbldpromIG*.csv.gpg' found. Session 'acig@ftp.ecsi.net' closed. No session. E:\Program Files\WinSCP>rem pause E:\Program Files\WinSCP>rem ***************************************************************************************** E:\Program Files\WinSCP>rem ** Move award file to Backup folder. E:\Program Files\WinSCP>rem ***************************************************************************************** E:\Program Files\WinSCP>move E:\Test\ECSI_Perkins_Loan_Test\TESTbldpromIG*.csv.gpg E:\Test\ECSI_Perkins_Loan_Test\BAK A duplicate file name exists, or the file cannot be found. E:\Program Files\WinSCP>rem pause E:\Program Files\WinSCP>exit /b E:\Program Files\WinSCP>