non unc paths

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

Hi

I am in the process of creating a client setup file for a client server
database. As the setup program runs, I have a browse button associated on a
form to find a directory containing a database on the server. However it
returns a unc path ie \\server name\share name\folder eg
\\server1\applications\database However i need the non unc path ie server
name:drive letter:\folder name eg server1:d:\applications\database.

Is there a way I can do this?

Thanks
D
 
DS said:
form to find a directory containing a database on the server. However it
returns a unc path ie \\server name\share name\folder eg
\\server1\applications\database However i need the non unc path ie server
name:drive letter:\folder name eg server1:d:\applications\database.

Is there a way I can do this?

It will return what you browse to. It can't use a drive letter for a
resource that doesn't exist at a drive letter. Now if it is a mapped drive
letter then you must browse via the mapped letter to start with and it will
return the same drive letter. The Common Dialog Box (or whatever control you
are using) doesn't "think" or "interpret" anything, it just returns the path
that you gave it.
 
Back
Top