Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

How to get sub folder path

$
0
0

I am trying to get sub string from a string with powershell

$completePath = "C:\Development\Work\ABC-SharePoint\ABC\css\ABC\XYZ"

$startingFolder = "ABC"

 

I want "ABC\css\ABC\XYZ"

 

note:ABC is multiple times in string

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles