non unc paths

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
 
P

Phillip Windell

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top