Episode 6 – Split-Path

Episode 6 – Split-Path

Update: 2011-09-05
Share

Description

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

Comments 
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

Episode 6 – Split-Path

Episode 6 – Split-Path

Tome Tanasovski