PowerShell Community

A place for the community to learn PowerShell and share insights

Determine if a folder exists

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 Test-Path cmdlet. It looks for a given path and returns True if it exists, otherwise it returns False. You could evaluate the result of the Test-Path...