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


Re: WinSCP Scripted task check file

martin wrote:

Your duplicate (and answered) post on Stack Overflow:

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.

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

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