Topic "Synchronization Error in C# Console Code : 32"

Author Message
whitedevil91
[View user's profile]

Joined: 2015-06-03
Posts: 6
I encounter sync problem when a file is still opening or processing by other process in C# console application.

So the WinSCP will stop the sync process even other standby files are ready to sync and send an error exception.

Here is I wish to configure the WinSCP option that whenever there is still opening or processing file(s), synchronization WinSCP consider skip/ignore those unable sync file(s) and continue sync other standby file(s).

I found the api and tried using
session.AdditionalExecutableArguments = "option batch continue";
. It is because I saw some past posts use scripting "option batch continue" to skip those problem file(s).

In result, It happens nothing and disconnect from my FTP server.

Below I have attached my log.txt.

Does WinSCP in C# code able to make an avoid/skip those opening/processing file(s)? so that other non-related standby file(s) able continue sync.

While those error sync file(s) throws error exception after sync process finish.

Thank you.

Best regards,
whitedevil91.
log.txt (14.66 KB) Private file

Description: (none)

Advertisements
whitedevil91
[View user's profile]

Joined: 2015-06-03
Posts: 6
Hi Admin,

Is all settings in Options -> Preferences in WinSCP.exe able to apply in C# Console Application?

Best Regards,
whitedevil91
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
No the assembly does not support option batch continue mode.
whitedevil91
[View user's profile]

Joined: 2015-06-03
Posts: 6
prikryl wrote:
No the assembly does not support option batch continue mode.


So how can I skip those opening/using file(s) during Synchronization?
Do you have any alternative way to allow C# change the batch setting or allows batch operations continue despite some errors??

In WinSCP.exe, I able to ignore the error during synchronization. After that only show error.
The setting was just a tick on Tools -> Preference -> Environment -> Continue on error (advanced users)

Thank you.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
The only option is to exclude the files using exclude mask.
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