Differences

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

2014-10-20 2014-12-12
grammar (martin) powershell example + automation heading + powershell enumeration syntax help (martin)
Line 331: Line 331:
Note that you cannot disable preserving timestamp for [[task_synchronize|synchronization]], unless you turn off //Modification timestamp// [[ui_synchronize#criteria|comparison criteria]]. Note that you cannot disable preserving timestamp for [[task_synchronize|synchronization]], unless you turn off //Modification timestamp// [[ui_synchronize#criteria|comparison criteria]].
 +
 +==== Automation ====
When using [[scripting]], add ''-nopreservetime'' and ''-nopermissions'' switches to ''[[scriptcommand_put|put]]'' command. With ''[[scriptcommand_synchronize|synchronize]]'' command, this works only when ''-criteria'' is ''none'' or ''size'' and it never works in ''both'' mode. When using [[scripting]], add ''-nopreservetime'' and ''-nopermissions'' switches to ''[[scriptcommand_put|put]]'' command. With ''[[scriptcommand_synchronize|synchronize]]'' command, this works only when ''-criteria'' is ''none'' or ''size'' and it never works in ''both'' mode.
-When using [[library|.NET assembly]], set ''[[library_transferoptions|TransferOptions]]'' as follows:+When using [[library|.NET assembly]], set ''[[library_transferoptions|TransferOptions]]'' as shown in following examples: 
 + 
 +C# example: 
<code csharp> <code csharp>
TransferOptions transferOptions = new TransferOptions(); TransferOptions transferOptions = new TransferOptions();
Line 342: Line 347:
</code> </code>
-With [[library_session_synchronizedirectories|Session.SynchronizeDirectories]], this works only when ''criteria'' parameter is ''SynchronizationCriteria.None'' or ''SynchronizationCriteria.Size'' and it never works when ''mode'' parameter is ''SynchronizationMode.Both''.+PowerShell example: 
 + 
 +<code powershell> 
 +$transferOptions = New-Object WinSCP.TransferOptions 
 +... 
 +$transferOptions.FilePermissions = $Null # This is default 
 +$transferOptions.PreserveTimestamp = $False 
 +</code> 
 + 
 +With [[library_session_synchronizedirectories|Session.SynchronizeDirectories]], this works only when ''criteria'' parameter is ''SynchronizationCriteria.None'' or ''SynchronizationCriteria.Size'' and it never works when ''mode'' parameter is ''SynchronizationMode.Both'' (learn [[library_powershell#enums|enumeration syntax]] in PowerShell).
===== [[supplied_message_incomplete]] The supplied message is incomplete. The signature was not verified. ===== ===== [[supplied_message_incomplete]] The supplied message is incomplete. The signature was not verified. =====

Last modified: by martin – Currently locked by: 177.234.138.204