Get Computer Name / Get User Name
Environ$ can be used to retrieve information from an operating system environment variable
Sub Get_Environmental_Variable()
Dim sHostName As String
Dim sUserName As String
' Get Host Name / Get Computer Name
sHostName = Environ$("computername")
' Get Current User Name
sUserName = Environ$("username")
End Sub
In Dot Net it can be achieved by http://dotnetdud.blogspot.com/2007/06/get-computer-name-in-net.html
and
http://dotnetdud.blogspot.com/2007/06/aspnet-get-user-net-get-user.html
Showing posts with label Computer Name VB Function. Show all posts
Showing posts with label Computer Name VB Function. Show all posts
Tuesday, May 01, 2007
Subscribe to:
Posts (Atom)
Download Windows Live Toolbar and personalize your Web experience! Add custom buttons to get the information you care about most.