Topic "[solved]How to ignore File or Folder Does Not Exist (put)"

Author Message
clement
[View user's profile]

Joined: 2012-09-19
Posts: 2
Hello,

I launch winscp.com with a script option in a Process Task in an ETL tool.

In the script there is a put command. Sometimes the source file will be there, sometimes not. When the source file is missing winSCP returns 0 and the Process Task fails.

How to ignore if source File or Folder Does Not Exist (put) and still returning 0 for other errors ? Is there an option to do this (like -delete which is able to remove the source file) ?

Thanks for your help

a+, =)
-=Clement=-

Configuration : Winscp 4.35

Last edited by clement on 2012-09-21 10:21; edited 1 time in total
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Just do not run WinSCP is the source file is not there.
_________________
Martin Prikryl
clementratel

Guest


Hello,

Thank you, at least a no is an answer.

You are right, check file existence before launching WinSCP is the second option.

But as the ETL tool has no "File Existence Check" component and I do not want to use a custom script, I decided to use the /log option of WinSCP and to keep the log file only when the step fails, which will allow me to distinct "missing source" issue from other ones (one of the many third options).

Great software by the way

a+,=)
-=Clement=-

Configuration : WinSCP 4.35
clement
[View user's profile]

Joined: 2012-09-19
Posts: 2
[solved] Smile
Advertisements

You can post new topics in this forum






Search Site

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