Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I want to take a little part of a URL, not a lot.

Status
Not open for further replies.

seanbo

Programmer
Jun 6, 2003
407
GB
if i have a url such as ' is there a class in the standard toolkit which will help me find out the domain (website.com), the folder ( and other useful stuff?

at the moment i'm splitting the string up myself, which is incredibly tedious. surely, there's got to be something out there that'll save me all those damn substring calls.

____________________________________________________
If you like a post, show you care by giving it a <censored>.
 
Take a look at the URI class. It has a &quot;Host&quot; property, plus other properties which will tell you if it's a UNC path, points to a file, or points to a loopback address.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top