Differences
This shows you the differences between the selected revisions of the page.
2013-04-30 | 2013-05-07 | ||
Using camel case for PowerShell built-in constants as MS does (martin) | avoiding need for backticks (martin) | ||
Line 260: | Line 260: | ||
{ | { | ||
Write-Host | Write-Host | ||
- | ("File {0} exists, local backup {1} does not" ` | + | ("File {0} exists, local backup {1} does not" -f |
- | -f $remotePath, $localPath) | + | $remotePath, $localPath) |
$download = $True | $download = $True | ||
} | } | ||
Line 272: | Line 272: | ||
{ | { | ||
Write-Host ( | Write-Host ( | ||
- | ("File {0} as well as local backup {1} exist, " + ` | + | ("File {0} as well as local backup {1} exist, " + |
- | "but remote file is newer ({2}) than local backup ({3})") ` | + | "but remote file is newer ({2}) than local backup ({3})") -f |
- | -f $remotePath, $localPath, $remoteWriteTime, $localWriteTime) | + | $remotePath, $localPath, $remoteWriteTime, $localWriteTime) |
$download = $True | $download = $True | ||
} | } | ||
Line 280: | Line 280: | ||
{ | { | ||
Write-Host ( | Write-Host ( | ||
- | ("File {0} as well as local backup {1} exist, " + ` | + | ("File {0} as well as local backup {1} exist, " + |
- | "but remote file is not newer ({2}) than local backup ({3})") ` | + | "but remote file is not newer ({2}) than local backup ({3})") -f |
- | -f $remotePath, $localPath, $remoteWriteTime, $localWriteTime) | + | $remotePath, $localPath, $remoteWriteTime, $localWriteTime) |
$download = $False | $download = $False | ||
} | } |