Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Split-Path

Split-Path - Powershell 2.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 »


Short description
Returns the specified part of a path.

Split-Path [-IsAbsolute] [-Path] <string[]> [-Credential <PSCredential>] [-LiteralPath <string[]>] [-Resolve] [-Use

The Split-Path cmdlet returns only the specified part of a path, such as the parent directory, a child directory, o
r a file name. It also can display the items that are referenced by the split path and tell whether the path is rel
ative or absolute.

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