Last active
November 10, 2019 21:17
-
-
Save MateuszNad/d41f3e2fd01de533867f4161672356bb 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
$Error.Clear() | |
Get-Item -Path F:\file, D:\temp -ErrorAction SilentlyContinue | |
if(-not $?) | |
{ | |
Write-Warning $Error[0].Exception.Message | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment