WinSCP stops after error, even with batch mode

Advertisement

irrupt
Guest

WinSCP stops after error, even with batch mode

< 2016-07-05 02:16:57.606 Script: Invalid argument to date encode [30828-11-1]

This is the error I got

. 2016-07-05 02:17:06.653 Script: Failed
> 2016-07-05 02:17:06.669 Script: close
. 2016-07-05 02:17:06.872 Disconnected from server

Then it just quits, doesn't try to continue

It's from a file that has an improper modified date (it's just a time - 12:00 to be exact, no date for some reason)

Is there any way that someone could make it so WinSCP will just continue on it's merry way afterwards?

WinSCP and OS versions are:

. 2016-07-05 02:00:06.606 WinSCP Version 5.7.7 (Build 6257) (OS 6.1.7601 Service Pack 1 - Windows Small Business Server 2011 Standard)

Reply with quote

Advertisement

irrupt
Guest

How hard would it be to just check the files modified time and if it's $null or invalid, ignore it in the sync process?

I have been using WinSCP with Powershell for some time and it was working fine until I came across this problem.. I've solved it myself however using Powershell - just made a function to check the files lastwritetime propery and if it's $null it's added to an array that's used in the #exclude directive.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: WinSCP stops after error, even with batch mode

Please attach a full session log file showing the problem (using the latest version of WinSCP).

Reply with quote

Advertisement

You can post new topics in this forum