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

Advertisement

clement
Joined:
Posts:
2

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

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: How to ignore File or Folder Does Not Exist (put)

Just do not run WinSCP is the source file is not there.
_________________
Martin Prikryl

Reply with quote

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

Reply with quote

Advertisement

You can post new topics in this forum