Given an Ps path(s) it streams a string with the qualifier, parent path or leaf item.
Snap-In: Microsoft.PowerShell.Management
Syntax:
Split-Path
[-Path] <String[]> [-Parent] [-Resolve] [-Credential <PSCredential>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Split-Path
[-Path] <String[]> [-Qualifier] [-Resolve] [-Credential <PSCredential>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Split-Path
[-Path] <String[]> [-NoQualifier] [-Resolve] [-Credential <PSCredential>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Split-Path
[-Path] <String[]> [-Leaf] [-Resolve] [-Credential <PSCredential>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Split-Path
[-Path] <String[]> [-Resolve] [-IsAbsolute] [-Credential <PSCredential>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Description:
The parse-path Cmdlet takes a Ps path and returns the result of the parse as an object. The object can be sent to the pipeline. Which node of the path is sent depends upon the parameters that are set in the cmdlet statement.