using System; class MainClass { public static void Main() { Console.WriteLine("Is interactive? : " + Environment.UserInteractive); } }
Author: coder
Environment.MachineName
using System; class MainClass { public static void Main() { Console.WriteLine("Machine name : " + Environment.MachineName); } }
Environment.UserDomainName
using System; class MainClass { public static void Main() { Console.WriteLine("Domain Name : " + Environment.UserDomainName); } }
Environment.UserName
using System; class MainClass { public static void Main() { Console.WriteLine("User Name : " + Environment.UserName); } }
Environment.Version
using System; class MainClass { public static void Main() { Console.WriteLine("CLR Version : " + Environment.Version); } }
Environment.OSVersion
using System; class MainClass { public static void Main() { Console.WriteLine("OS PlatformID : " + Environment.OSVersion.Platform); Console.WriteLine("OS Major Version : " + Environment.OSVersion.Version.Major); Console.WriteLine("OS Minor Version : " + Environment.OSVersion.Version.Minor); } }
Environment.CommandLine
using System; class MainClass { public static void Main() { Console.WriteLine("Command line : " + Environment.CommandLine); } }