gistlib
You can get the system name in C# by using the Environment class and accessing the MachineName property, like this:
Environment
MachineName
main.csstring systemName = Environment.MachineName; Console.WriteLine("System name: " + systemName); 94 chars3 lines
string systemName = Environment.MachineName; Console.WriteLine("System name: " + systemName);
This will output the name of the current system.
gistlibby LogSnag