![PowerShell Cmdlet of the Day Podcast artwork](https://is2-ssl.mzstatic.com/image/thumb/Podcasts6/v4/9c/12/c1/9c12c1b4-28ae-f284-a2c8-57ea0dcc18a3/mza_1234636268215491542.jpg/100x100bb.jpg)
Episode 6 – Split-Path
PowerShell Cmdlet of the Day Podcast
English - September 05, 2011 00:00 - 5.78 MB - ★★★★ - 6 ratingsTechnology powershell Homepage Download Apple Podcasts Google Podcasts Overcast Castro Pocket Casts RSS feed
Download the MP3 Podcast In this episode we look at how you can carve up strings that make up strings of text that make up paths with Split-Path: By default – returns parent path Split-Path c:\users\tome c:\user Leaf – returns the end of the path (file or directory name) Split-Path c:\users\tome -Leaf tome NoQualifier – removes […]
Download the MP3 Podcast
In this episode we look at how you can carve up strings that make up strings of text that make up paths with Split-Path:
By default – returns parent path
Split-Path c:\users\tome
c:\user
Leaf – returns the end of the path (file or directory name)
Split-Path c:\users\tome -Leaf
tome
NoQualifier – removes the drive letter from the path
Split-path hklm:\software\microsoft -NoQualifier
\software\microsoft
Qualifier – returns just the drive letter
Split-path c:\users\tome
c:\
IsAbsolute – returns true if it is an absolute path, not a relative path.
Resolve – evaluates the string path to a real path
Brought to you by The Windows PowerShell Bible 2.0 and PowerShellGroup.Org