Can I get the server name I am hooked up to using an API call or is ther another method of doing it ?
Thanks in advance.
Printable View
Can I get the server name I am hooked up to using an API call or is ther another method of doing it ?
Thanks in advance.
Check out the Network/Internet section of this link
http://www.freevbcode.com/default.asp
I just found this one too. It might have potential for what you want.
http://www.vb2themax.com/Item.asp?Pa...at=1700&ID=197
Thanks Hack!
Dim strCompName, strDomain, WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
StrCompName = WshNetwork.ComputerName
StrDomain = WshNetwork.UserDomain
This may or may not help... but I hope it does..
Josh