Showing results for Test-Path - PowerShell Community

Mar 13, 2021
2
2

Determine if a folder exists

Fabian Baumanis
Fabian Baumanis

Q: Is there any way to determine whether or not a specific folder exists on a computer? A: There are loads of ways you can do this. The Test-Path Cmdlet The easiest way to do this is to use the cmdlet. It looks for a given path and returns if it exists, otherwise it returns . You could evaluate the result of the like in the code snippet below ...

Scripting Guys UpdateFileTest-Path