Posted By

PalCoder on 06/07/13


Tagged

c#


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

danfinrud55
Priestd09


OS Information using C#


 / Published in: C#
 

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

  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  

You need to login to post a comment.