Returns true if the path exists, otherwise it returns false.
Snap-In: Microsoft.PowerShell.Management
Syntax:
Test-Path
[-Path] <String[]> [-Filter <String>] [-Include <String[]>] [-Exclude <String[]>] [-PathType <TestPathType>] [-Credential <PSCredential>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Test-Path
[-Path] <String[]> -IsValid [-Credential <PSCredential>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Description:
The test-path Cmdlet follows the path it's given and returns a true or false result depending on whether the path is present.