Created
May 30, 2015 10:47
-
-
Save martin9700/71b7a2d6411b616817c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Try { | |
Write-Verbose "Reading $PathName..." | |
$File = New-Object System.IO.StreamReader -Argument $PathName | |
} | |
Catch { | |
Write-Error "Unable to read $PathName because $($Error[0])" | |
Exit 999 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment