Post a reply

Options
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)

Options

Topic review

HewitG

Re: WinSCP Scripted task check file

martin wrote:

Your duplicate (and answered) post on Stack Overflow:
https://stackoverflow.com/q/44798761/850848


Its not a duplicate, it had not been asked here or any where else. There was no response here so i asked elsewhere.

Keep your pompous response's to yourself in future you sad little man.
HewitG

WinSCP Scripted task check file

Hi All,

I'm uploading to an FTPS via an SSIS package as part of a process.

What i need to do is get the FTPS batch file to cause a fail if the file doesnt exist. The current file is :

option batch on
option confirm off
open ftps://username:password@ftpsaddress/ -implicit -certificate="xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
cd "/DIR/"
option transfer binary
put \\SERVER\Reports_BackUp\SFTP\*.csv -nopermissions -nopreservetime
close
exit

this works great but i need to add a if exists in and cant work out how..