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

Regex - Maybe ?

$
0
0

Hi friends,

 

I'm working on a tool that (ultimately renames branches) reads-in a TFS VC server path [$/TeamProject/Branch] and is stored as a variable which will later be mapped to a folder on local system. But before that-  I want to use just the Branch name to define that folder at a designated path on local-- strip away the $/TeamProject/.

 

Still being relatively new to PowerShell, I'm looking to the community to determine the best approach to my challenge.

Example:

$tfsLocation = $(Read-Host -Prompt "TFS VC Path") 

$localFolder = "c:\temp\" + $tfsLocation Branch name

Regards


Viewing all articles
Browse latest Browse all 6937

Trending Articles