Differences

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

2013-04-26 2013-04-30
Converting to .NET Assembly (martin) Using camel case for PowerShell built-in constants as MS does (martin)
Line 43: Line 43:
Switches mapping: Switches mapping:
^ Switch                  ^ Mapping ^ ^ Switch                  ^ Mapping ^
-| ''-delete''              | Value ''true'' (''$TRUE'') for method parameter ''remove''. |+| ''-delete''              | Value ''true'' (''$True'') for method parameter ''remove''. |
| ''-resume''              | Not supported. | | ''-resume''              | Not supported. |
| ''-append''              | Not supported. | | ''-append''              | Not supported. |
Line 69: Line 69:
$resumeSupport.State = [WinSCP.TransferResumeSupportState]::Off $resumeSupport.State = [WinSCP.TransferResumeSupportState]::Off
$transferOptions.ResumeSupport = $resumeSupport $transferOptions.ResumeSupport = $resumeSupport
-# Absolute paths + $TRUE for -delete + Two calls for two source parameters +# Absolute paths + $True for -delete + Two calls for two source parameters 
-$transferResult = $session.GetFiles("/home/martinp/*.txt", "d:\web\", $TRUE, $transferOptions) +$transferResult = $session.GetFiles("/home/martinp/*.txt", "d:\web\", $True, $transferOptions) 
-$transferResult = $session.GetFiles("/home/martinp/*.xml", "d:\web\", $TRUE, $transferOptions)+$transferResult = $session.GetFiles("/home/martinp/*.xml", "d:\web\", $True, $transferOptions)
# Throw on any error to emulate "option batch abort" # Throw on any error to emulate "option batch abort"
$transferResult.Check() $transferResult.Check()
</code> </code>

Last modified: by martin