Differences

This shows you the differences between the selected revisions of the page.

2015-07-29 2015-12-17
what's wrong with remote? (martin) removing uses of option batch and confirm not needed since 5.6 with release of the next major branch 5.8 (martin)
Line 56: Line 56:
| ''-permissions'' \\ ''-nopermissions'' \\  ''-transfer'' \\ ''-filemask'' \\ ''-resumesupport'' \\ ''-speed=<kbps>'' | [[library_from_script_transfer_settings|Converting transfer settings scripting switches]] to .NET assembly class ''TransferSettings''. | | ''-permissions'' \\ ''-nopermissions'' \\  ''-transfer'' \\ ''-filemask'' \\ ''-resumesupport'' \\ ''-speed=<kbps>'' | [[library_from_script_transfer_settings|Converting transfer settings scripting switches]] to .NET assembly class ''TransferSettings''. |
-To emulate ''[[scriptcommand_option|option batch abort]]'' mode, call ''[[library_operationresultbase|TransferOperationResult.Check]]'' on method's result. See also [[library_session#results|Capturing results of operations]].+To emulate the ([[scripting#using_scripting|default]]) ''[[scriptcommand_option|option batch abort]]'' mode, call ''[[library_operationresultbase|TransferOperationResult.Check]]'' on method's result. See also [[library_session#results|Capturing results of operations]].
For example, following script snippet: For example, following script snippet:
<code winscp> <code winscp>
-option batch abort 
... ...
synchronize both d:\www /home/martin/public_html synchronize both d:\www /home/martin/public_html
Line 72: Line 71:
    $session.SynchronizeDirectories(     $session.SynchronizeDirectories(
        [WinSCP.SynchronizationMode]::Both, "d:\www", "/home/martin/public_html", $False)         [WinSCP.SynchronizationMode]::Both, "d:\www", "/home/martin/public_html", $False)
-# Throw on any error to emulate "option batch abort"+# Throw on any error to emulate the (default) "option batch abort" mode
$synchronizationResult.Check() $synchronizationResult.Check()
</code> </code>

Last modified: by martin