Results 1 to 4 of 4

Thread: UNC to mapped drive.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    68

    UNC to mapped drive.

    Hi All,

    Thanks for the help with converting a path to a unc...

    However now I need to do the reverse. I need to convert a unc to the mapped drive path... (obviously the pc will have to have a drive mapped to that unc.. but assuming this is true)...

    Any ideas???
    THE DOUGSTER!!!!!!


    *-MCSD-*

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    68
    ANYBODY???? PLEASE!! : )
    THE DOUGSTER!!!!!!


    *-MCSD-*

  3. #3
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    Loop through all of the Keys in:

    HKEY_CURRENT_USER\Network\

    And look for the entry named RemotePath

    Hope this helps,

  4. #4
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    this is an API function that will do it

    Doesnt work on Win 2k though

    VB Code:
    1. Declare Function ScLocalPathFromUNC Lib "mapi32x" Alias "ScLocalPathFromUNC@12"  _
    2. (ByVal szUNC As String _
    3. , ByVal szLocal As String, ByVal cchLocal As Integer) As Integer

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