I searched for this a bit on a couple forums, and thus far haven't been successful. I wanna know how to get the name of the current computer and save the information into a string variable.
Thanks. :wave:
Printable View
I searched for this a bit on a couple forums, and thus far haven't been successful. I wanna know how to get the name of the current computer and save the information into a string variable.
Thanks. :wave:
Here is how. :)
VB Code:
private void button1_Click(object sender, System.EventArgs e) { Console.WriteLine("MachineName: {0}", System.Environment.MachineName); }
Very much appreciated. Thank you very much.