Results 1 to 7 of 7

Thread: Converting Paths

  1. #1

    Thread Starter
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935

    Question Converting Paths

    does anyone know of a function or api call (this may not even be possible) that can convert a unc path to its true path

    eg convert

    \\myserver\hello

    To

    f:\hello

    where f: is the physical drive on the server myserver that the folder hello resides on.

    If you have any information that resolves this or leads to the resolution of this issue there will be absolutly nothing in it for you apart from my deepest thanks and appreciation

  2. #2
    Fanatic Member steve65's Avatar
    Join Date
    Jun 2000
    Posts
    610
    I wonder if the operating system even knows what the drive is of the server. You may want to go about it another way. Assuming you have admin rights to the server in question. You may want to access the server directly and see what drives it has available and then evaluate each drive to see if it has a share with the name you are looking for.

    You need to remmebr though, that this approach will most likely only work on Windows systems because I do not think UNIX based operating systems do not have drive letters.

    I hope that helps some.
    This space for rent...

  3. #3

    Thread Starter
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    okay thanks for your comments steve

    I thought along your lines originally

    However even though im using a dll that i have written that is installed and executed from the server using com+

    I have not been able to make a remote app exam the servers harddrives and return those values

    Which is why i thought maybe browsing it using the unc paths and then converting those to a true path might be possible.

    If anybody knows of a way for me to achieve either method (REMEMBER I AM WANTING TO EXECUTE THIS APP REMOTLEY) then your input would be appreciated

    Thanks all

  4. #4

    Thread Starter
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    PS this is being designed to run on WIn 2000 servers and win 9x or NT workstations

  5. #5

    Thread Starter
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    arrrghhh anybody ???

  6. #6
    Frenzied Member
    Join Date
    Aug 2001
    Posts
    1,075
    The link below points to a description of a VC++ call to what looks like mapi32.dll to do what you want. The call is pretty straigth forward and should be easy to convert a VB declaration. It does say the function may not be supported in future versions.

    http://msdn.microsoft.com/library/de...athfromunc.asp

    Good luck,

    Greg
    Free VB Add-In - The Reference Librarian
    Click Here for screen shot and download link.

  7. #7

    Thread Starter
    Fanatic Member rudvs2's Avatar
    Join Date
    Mar 2001
    Location
    NZ
    Posts
    935
    thanks greg im checking it out now

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