Windows Phone Developers

Thursday, October 30, 2008

C# Get Computer Name – Name of the Computer using C#

Get Computer Name using .NET (C#)

The following code will get the name of the computer (NetBIOS name of the local computer)

Console.WriteLine("Machine Name := " + Environment.MachineName);

See also

Get Computer Name (VBA)

Get Computer Name in .Net

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 was really helpful to me
    thaks a lot

  2. Hi I'm Prashant.
    Thanx a lot for small but helpful codeline.

  3. thnkss alot yar....

  4. Exactly what I needed. Thank you!

  5. how to get host name of another system in .net?

    ReplyDelete :: Visual Studio 2005 :: Visual Studio 2008 :: Visual Basic 2005