Test-ISPath

Determines whether all elements of a path exist.

Syntax

Test-ISPath [-path] <String> [-serverName] <String> [-pathType] <String> [<CommonParameters>]

Detailed Description

The Test-ISPath function determines whether all elements of the path exist. It returns TRUE ($true) if all elements exist and FALSE ($false) if any are missing. It can also tell whether the path syntax is valid and whether the path leads to a container or a terminal (leaf) element.

Related Commands

* Test-ISPath

Parameters

Name Description Required? Pipeline Input Default Value
path    true  false   
serverName    true  false   
pathType    true  false   

Input Type

None You cannot pipe objects to Test-ISPath.

Return Values

Boolean Test-ISPath returns a Boolean representing whether the specified path exists.

Examples

EXAMPLE 1

Test-ISPath 'msdb\sqlpsx' Z002 'Folder'
This command tests whether the path msdb\sqlpsx exists on the SSIS server Z002.