OS Information using C#


/ Published in: C#
Save to your folder(s)

this program view some of OS information try it you will not lose thing.


Copy this code and paste it in your HTML
  1. static void Main(string[] args)
  2. {
  3.  
  4. Console.Out.WriteLine("OS Information");
  5. Console.Out.WriteLine("The Machine Name => "+Environment.MachineName);
  6. Console.Out.WriteLine("The OS Version => "+Environment.OSVersion);
  7. Console.Out.WriteLine("The User Domain Name => "+Environment.UserDomainName);
  8. Console.Out.WriteLine("The Current UserName => "+Environment.UserName);
  9. Console.ReadKey();
  10.  
  11. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.