Jun 16, 2003 #1 trezlub Programmer May 2, 2003 67 GB How do you get the local machine name into VB? I need to display the value somehow. Any ideas?
Jun 16, 2003 #2 CajunCenturion Programmer Mar 4, 2002 11,381 US Have you tried using the GetComputerName API? Good Luck -------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein Upvote 0 Downvote
Have you tried using the GetComputerName API? Good Luck -------------- As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
Jun 16, 2003 #3 SemperFiDownUnda Instructor Aug 6, 2002 1,561 AU /me has bad flash backs "CajunCenturion I don't want to use API's" Don't ask me why I'm having flash backs...I just find it funny and had to say it. No reflection on you trezlub. I think its just senility setting in hard. Upvote 0 Downvote
/me has bad flash backs "CajunCenturion I don't want to use API's" Don't ask me why I'm having flash backs...I just find it funny and had to say it. No reflection on you trezlub. I think its just senility setting in hard.
Jun 17, 2003 #4 SonOfEmidec1100 Technical User Aug 12, 2001 965 AU I based this on something I found by searching MSDN Also should appeal to those whose prefer script objects over API's Dim WshNetwork As Object Set WshNetwork = CreateObject("WScript.Network" Debug.Print "Domain = " & WshNetwork.UserDomain Debug.Print "Computer Name = " & WshNetwork.ComputerName Debug.Print "User Name = " & WshNetwork.UserName Upvote 0 Downvote
I based this on something I found by searching MSDN Also should appeal to those whose prefer script objects over API's Dim WshNetwork As Object Set WshNetwork = CreateObject("WScript.Network" Debug.Print "Domain = " & WshNetwork.UserDomain Debug.Print "Computer Name = " & WshNetwork.ComputerName Debug.Print "User Name = " & WshNetwork.UserName