Toastie 6 months ago
parent
commit
65330a1968
1 changed files with 2 additions and 0 deletions
  1. 2 0
      microsoft/powershell/check-file-is-readable.ps1

+ 2 - 0
microsoft/powershell/check-file-is-readable.ps1

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