Differences

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

2014-12-03 2014-12-03
stray empty lines (martin) parameterised powershell script (martin)
Line 691: Line 691:
<code powershell> <code powershell>
 +param (
 +    $localPath = "c:\toupload\",
 +    $remotePath = "/home/user/upload/"
 +)
 +
try try
{ {
Line 711: Line 716:
        $session.Open($sessionOptions)         $session.Open($sessionOptions)
-        $localPath = "c:\toupload\" 
-        $remotePath = "/home/user/upload/" 
        # Deliberately using an underscore instead of a dot,         # Deliberately using an underscore instead of a dot,
        # as the dot has specific meaning in operation mask         # as the dot has specific meaning in operation mask

Last modified: by martin