Windows Phone Developers

Thursday, June 7, 2007

Get Computer Name in .Net

Use the My object to get the name of the computer

' Returns Name of the Computer

Function Get_Comp_Name() As String

Return My.Computer.Name.ToString

End Function

The VBA/Visual Basic function to do the same is :

The SQL Statement to get the computer name is :

Changing LINKS
Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon


  1. this return server name i need client computer name

  2. Retrieve Client Machine Name

    The following might help

    Dim ClientMachineEntry As System.Net.IPHostEntry
    ClientMachineEntry = System.Net.Dns.GetHostByAddress(Request.ServerVariables.Item("REMOTE_HOST"))