Subject | Re: [firebird-support] UNC to drive letter path |
---|---|
Author | Gary Marshall |
Post date | 2003-09-03T09:39:57Z |
Hi there
browse to a file containing the name of the database, rather than the
database file itself. This file is setup by whoever creates the database
initially. The value in this file is then used by the client to find the
database on the server.
Hope that helps
Gary Marshall
> For my application to connect to and communicate with the global databasethe
> that resides on the remote machine I have to first retrieve the path to
> database location on the remote machine. To do that, the user has toHe
> establish this connection the very first time he starts the application.
> can do this by using the Windows standard open dialog to choose a locationhowever
> on a remote machine for the global database. The Windows open dialog
> always returns a UNC style path for the global database location on thein
> remote machine and I found it impossible to convert this UNC path
> (server1\\path1\database.gdb) to the true drive letter path
> (server1:E:\path1\database.gdb)... or in other words I could not find any
> windows API method that tells me that 'path1' on 'server1' is on the 'E:'
> drive. And unfortunately firebird requires (or better the IBX components
> Delphi7) require that one supplies exactly this local drive letter pathOk. Well, what we do to solve this problem for our users, is that they
> instead of the UNC path.
browse to a file containing the name of the database, rather than the
database file itself. This file is setup by whoever creates the database
initially. The value in this file is then used by the client to find the
database on the server.
Hope that helps
Gary Marshall