Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How do I extract part of a url?

$
0
0

In Powershell...if I have a url like this http://www.domain.com/folder1/thisfile.aspx. 

How do I go about stripping this down? I basically want to take out the http://, then change all the slashes ("/") into underscores ("_"). My goal is to dynamically create a file name from a site url. Please help. 


Viewing all articles
Browse latest Browse all 15028

Trending Articles