|
-
Dec 18th, 2008, 02:59 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Cleanest way to get only the the drive letter or network name from a filepath
Lets say a user inputs a file path. Could be any style:
C:\Program Files
C:\
G:\temp
\\netdrv10\c$\windows
\\srcdrv22\d$\temp
I'd like to get only the drive or network name from the path (which I've bolded)
Whats the cleanest way to handle both local and network paths like this?
Last edited by DssTrainer; Dec 18th, 2008 at 03:09 PM.
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
|