Differences
This shows you the differences between the selected revisions of the page.
| 2017-05-12 | 2017-10-03 | ||
| script_downloading_when_done_file_exists (martin) | using variable expansion in strings in powershell (martin) | ||
| Line 14: | Line 14: | ||
| if ($session.FileExists($remotePath)) | if ($session.FileExists($remotePath)) | ||
| { | { | ||
| - | Write-Host ("File {0} exists, downloading" -f $remotePath) | + | Write-Host "File $remotePath exists, downloading" |
| $session.GetFiles($remotePath, $localPath).Check() | $session.GetFiles($remotePath, $localPath).Check() | ||
| } | } | ||
| else | else | ||
| { | { | ||
| - | Write-Host ("File {0} does not exist" -f $remotePath) | + | Write-Host "File $remotePath does not exist" |
| } | } | ||
| </code> | </code> | ||