Results 1 to 9 of 9

Thread: [RESOLVED] Cleanest way to get only the the drive letter or network name from a filepath

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    211

    Resolved [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
  •  



Click Here to Expand Forum to Full Width