Hey,
(This is an office 2000 database built using Access XP, on a Windows XP system)
How do I get the Domain Name from a Windows 98 computer on a Server. I have tried many different functions available on the net including,
Set net = CreateObject("Wscript.Network"
sDomain = net.UserDomain
(Windows Scripting Host is installed)
And two or three other functions that involve obtaining both the username and the domain name. I have no problems obtaining the user name but every function that obtains the domain name produces a blank result. All of these functions work on XP machines as long as the Office version is either XP or 2000, but on a windows 98 machine with office 2000, I can not retrieve the domain name. I have read that 98 stores its domain names and other data differently to later versions, but I have been unsuccessful in obtaining it.
Any one have any ideas?
I'm stumped?
Cheers
Sam
"You couldn't fool your mother on the foolingest day of your life if you had an electrified fooling machine." - Homer
(This is an office 2000 database built using Access XP, on a Windows XP system)
How do I get the Domain Name from a Windows 98 computer on a Server. I have tried many different functions available on the net including,
Set net = CreateObject("Wscript.Network"
sDomain = net.UserDomain
(Windows Scripting Host is installed)
And two or three other functions that involve obtaining both the username and the domain name. I have no problems obtaining the user name but every function that obtains the domain name produces a blank result. All of these functions work on XP machines as long as the Office version is either XP or 2000, but on a windows 98 machine with office 2000, I can not retrieve the domain name. I have read that 98 stores its domain names and other data differently to later versions, but I have been unsuccessful in obtaining it.
Any one have any ideas?
I'm stumped?
Cheers
Sam
"You couldn't fool your mother on the foolingest day of your life if you had an electrified fooling machine." - Homer