check-file-is-readable.ps1 185 B

12
  1. foreach($line in Get-Content .\ItemFailureReport_R1_list.txt -Encoding UTF8) {
  2. try { [System.IO.File]::OpenRead($line).Close() ; Write-Host -NoNewline "." } catch { Write-Host $line } }