|
-
Jan 27th, 2007, 06:09 PM
#1
Thread Starter
Addicted Member
[RESOLVED] [2005] Best way to get FileName and DirectoryName of a URL?
Hi All,
I was messing with this yesterday and today morning to get the FileName and URL without the FileName. Apparently Path.GetFileName and Path.DirectoryName only works for Local paths and not for URLs.
I was wondering what would be the best way to extract these information so that from a URL like http://wmwiki.com/downloads/itsfv/it....9.1-setup.zip I can get
FileName: itsfv-4.0.9.1-setup.zip and DirectoryName: http://wmwiki.com/downloads/itsfv
Thanks,
McoreD
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|