Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Caroline
2016-02-29T21:20:09Z
When i create a task that executes a .bat file it always returns as failed even though the task succeeded.

the .bat file executes winscp and sends a file to an sftp site.


What do i need to put in my .bat file to avoid this?
Sponsor
Forum information
Support
2016-02-29T22:15:01Z
It could be a number of reasons an executable, like WinSCP or other part in batch file returns another exit code than 0. It might now be serious.

However, I do recommend that you use built in SCP functionality in VisualCron. We have done the latest fixes for SCP in this version:

http://www.visualcron.co....aspx?g=posts&t=5506 
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
AmTech
2016-03-01T09:34:58Z
Originally Posted by: Caroline 

When i create a task that executes a .bat file it always returns as failed even though the task succeeded.

the .bat file executes winscp and sends a file to an sftp site.


What do i need to put in my .bat file to avoid this?



I've had a similar issue with batch files running winscp. Try changing the execution context to foreground execution. It got my winscp processes working.
Scroll to Top