below line of code show your machine name (PC-name) .
class MachineName
{
static void Main(string[] args)
{
Console.WriteLine(Environment.MachineName);
Console.ReadKey();
}
}
Liked By
Write Answer
how to get machine name in c#
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy
Join MindStick Community
You have need login or register for voting of answers or question.
Vijay Shukla
08-Jun-2013