Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 3.0 » Split-Path

Split-Path - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Split-Path

Short description
Returns the specified part of a path.

Syntax
Split-Path [-Path] <String[]> [-Credential <PSCredential>] [-Parent] [-Resolve] [-UseTransaction] [<CommonParameters>]
Split-Path [-Path] <String[]> [-Credential <PSCredential>] [-IsAbsolute] [-Resolve] [-UseTransaction] [<CommonParameter
s>]
Split-Path [-Path] <String[]> [-Credential <PSCredential>] [-Leaf] [-Resolve] [-UseTransaction] [<CommonParameters>]
Split-Path [-Credential <PSCredential>] [-Resolve] [-UseTransaction] -LiteralPath <String[]> [<CommonParameters>]
Split-Path [-Path] <String[]> [-Credential <PSCredential>] [-NoQualifier] [-Resolve] [-UseTransaction] [<CommonParamete
rs>]
Split-Path [-Path] <String[]> [[-Qualifier]] [-Credential <PSCredential>] [-Resolve] [-UseTransaction] [<CommonParamete
rs>]





Description
The Split-Path cmdlet returns only the specified part of a path, such as the parent directory, a child directory, or a 
file name. It can also get items that are referenced by the split path and tell whether the path is relative or absolut
e.


You can use this cmdlet to get or submit only a selected part of a path.