WinSCP Scripted task check file

Advertisement

HewitG
Guest

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..

Reply with quote

HewitG
Guest

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.

Reply with quote

Advertisement

You can post new topics in this forum