Post a reply

Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)


Topic review


Thanks Prikryl. I fixed the error. However i can connect manually from one server but not from the other server. Any ideas please?

Re: Job Success but files did not copy

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Job Success but files did not copy

Good Morning,
I have a SSIS package, which executes a winscp script. On a remote server i have two folders and on under folder (PartyCodes) i have a .csv file (codes.csv) that i need to copy to local drive and delete the file.
I have the following script which runs but doesn't copies the file, please advice where am going wrong.
NOTE: When i executed the package first i got the following error ([Execute Process Task] Error: In Executing "C:\Program Files (x86)\WinSCP\" "-script=C:\winsftpscriptCAR.txt" at "C:\Program Files (x86)\WinSCP", The process exit code was "1" while the expected was "0".0. So changed the task properties (FailTaskIfReturncodeisnotcorrectvalue to FALSE).
Now the job is success but not copying the files , my code
option batch on

option confirm off
open sftp://userid:pwd@servername:22 -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
cd .
option transfer binary
get -preservetime *.csv F:\FTPShare\ftp\CARDownloads\

Please need help