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

5 comments:

  1. this was really helpful to me
    thaks a lot

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

    ReplyDelete
  3. thnkss alot yar....

    ReplyDelete
  4. Exactly what I needed. Thank you!

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

    ReplyDelete