Check if file exist via PowerShell [Fastest Way]
Posted in Windows Powershell | No Comment | 819 views | 23/01/2016 17:38
You can use Test-Path to test if file is exist.
But you can also use [System.IO.File]::Exists() to check it fast.
You can use in if block to check it on one line:
It will also use less memory.
Leave a Reply