Re: Disable ResumeSupport in Powershell
My response to your duplicate post on Stack Overflow:
https://stackoverflow.com/q/35278404/850848
---
Syntax for using enumeration in PowerShell is described in
article Using WinSCP .NET assembly from PowerShell.
---
You can find a PowerShell example for
https://stackoverflow.com/q/35278404/850848
---
Syntax for using enumeration in PowerShell is described in
article Using WinSCP .NET assembly from PowerShell.
Enumeration values are accessed using static field syntax[Namespace.Type]::Member
, for example[WinSCP.Protocol]::Sftp
.
---
You can find a PowerShell example for
TransferResumeSupport.State
in Converting to .NET assembly section of get
and put
command documentation:
$transferOptions = New-Object WinSCP.TransferOptions
$transferOptions.ResumeSupport.State = [WinSCP.TransferResumeSupportState]::Off
$session.GetFiles(..., ..., $False, $transferOptions).Check()