Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Dec : How do I identify a server name

www.cryer.info
Managed Newsgroup Archive

How do I identify a server name

Subject:How do I identify a server name
Posted by:"Patrick Hughes" (duhvinci@-removethis-engds.com)
Date:Wed, 5 Dec 2007 09:33:42

Perhaps this is not the correct newsgroup, but I didn't see a "network"
group so here goes.

If a user were to install my program on the server, how do I get the server
name?

For example all users computers access the server by \server-01\files\....
But if a user installs the program on the server it would see that directory
as c:\files\.... and I would like it to return the \server-01\files. From
what I can tell so far it looks like HKEY_CURRENT_USER\Volatile
Environment\LOGONSERVER returns the correct path.

Would this registry key be reliable?

Thank you,

--
Patrick Hughes

Replies:

www.cryer.info
Managed Newsgroup Archive