Topic "WinSCP Scripted task check file"

Author Message
HewitG

Guest


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..
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26572
Location: Prague, Czechia
Your duplicate (and answered) post on Stack Overflow:
https://stackoverflow.com/q/44798761/850848
HewitG

Guest


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

You can post new topics in this forum






Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License