Differences

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

2015-03-09 2015-12-17
typo (martin) removing uses of option batch and confirm not needed since 5.6 with release of the next major branch 5.8 (martin)
Line 12: Line 12:
There are some conceptual differences though. These are discussed in following sections. There are some conceptual differences though. These are discussed in following sections.
-==== [[mode]] Interactive/Batch Mode ==== +==== [[mode]] Batch Mode ==== 
-Scripts run in an interactive mode by default (''[[scriptcommand_option|option batch off]]''). There's no equivalent for this in .NET assembly, which always runs in a batch mode, equivalent to ''option batch on'' in scripting mode.+Batch scripts (specified using ''/script'' or ''/command'' [[commandline#scripting|command-line switches]]) run in an ''[[scriptcommand_option|option batch abort]]'' mode.
-To emulate ''option batch abort'' (a recommended setting, as used in most scripting examples), call a method ''[[library_operationresultbase|OperationResultBase]].Check'' for all ''Session'' methods that return an operation result (such as ''[[library_session_getfiles|GetFiles]]'', ''[[library_session_putfiles|PutFiles]]'', and ''[[library_session_synchronizedirectories|SynchronizeDirectories]]''). +To emulate the ''option batch abort'' call a method ''[[library_operationresultbase|OperationResultBase]].Check'' for all ''Session'' methods that return an operation result (such as ''[[library_session_getfiles|GetFiles]]'', ''[[library_session_putfiles|PutFiles]]'', and ''[[library_session_synchronizedirectories|SynchronizeDirectories]]'').
Read more about [[library_session#results|capturing errors]] in .NET assembly. Documentation for converting an individual scripting commands (such as ''get'' [[scriptcommand_get#net|command mapping]]) details more mapping specifics for the respective operations. Read more about [[library_session#results|capturing errors]] in .NET assembly. Documentation for converting an individual scripting commands (such as ''get'' [[scriptcommand_get#net|command mapping]]) details more mapping specifics for the respective operations.

Last modified: by martin