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