i.e. anything interesting…
Get your local machine/computer name in c#
Four ways to get your local network/machine name:
string name = Environment.MachineName;
string name = System.Net.Dns.GetHostName();
string name = System.Windows.Forms.SystemInformation.ComputerName;
string name = System.Environment.GetEnvironmentVariable(“COMPUTERNAME”);
| Print article | This entry was posted by Simon Steed on September 17, 2008 at 9:56 am, and is filed under C# and ASP.Net. Follow any responses to this post through RSS 2.0. Both comments and pings are currently closed. |
Comments are closed.