Topic "How do I set option batch abort from .Net"

Author Message
K_G
[View user's profile]

Joined: 2014-12-15
Posts: 10
Location: UK
Hi

How do i set

option batch abort


using C sharp .net code?


I tried the rawswetings, but does not seem to work as i thought it would.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
The assembly uses option batch on mode. If you call .Check() on all "operation results" returned by Session class methods, you get an equivalent of abort mode.
See also
https://winscp.net/eng/docs/library_session#results
https://winscp.net/eng/docs/library_from_script#mode
_________________
Martin Prikryl
K_G
[View user's profile]

Joined: 2014-12-15
Posts: 10
Location: UK
soryr , so how do i convert

GetFiles() to use .check


as I did look at that, but does not seem to work as example is using TransferResult.

as compiling gives


'Cannont implicitly convert type 'void' to 'WinSCP.TransferOperationResult'

Hope you can help.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
See
https://winscp.net/eng/docs/library_session_getfiles#csharp
or
https://winscp.net/eng/docs/library_session#results (example for .PutFiles, but it's the same for .GetFiles)
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