Differences
This shows you the differences between the selected revisions of the page.
| 2017-01-08 | 2017-10-04 | ||
| options explicit anchor (martin) | using variable expansion in strings in powershell (martin) | ||
| Line 71: | Line 71: | ||
| # matching files, instead of grepping their contents | # matching files, instead of grepping their contents | ||
| - | Write-Host ("File {0} matches mask, searching contents..." -f $fileInfo.FullName) | + | Write-Host "File $($fileInfo.FullName) matches mask, searching contents..." | 
| $tempPath = (Join-Path $env:temp $fileInfo.Name) | $tempPath = (Join-Path $env:temp $fileInfo.Name) | ||
| # Download file to temporary directory | # Download file to temporary directory | ||
| Line 106: | Line 106: | ||
| catch [Exception] | catch [Exception] | ||
| { | { | ||
| - | Write-Host ("Error: {0}" -f $_.Exception.Message) | + | Write-Host "Error: $($_.Exception.Message)" | 
| $result = 1 | $result = 1 | ||
| } | } | ||