文件名称:C#获取系统信息.cs
文件大小:2KB
文件格式:CS
更新时间:2012-10-10 08:22:43
C#,获取,系统信息,cs
C#获取系统信息.cs Console.WriteLine("\n进程命令行={0}", Environment.CommandLine); Console.WriteLine("\n当前工作目录={0}", Environment.CurrentDirectory); Console.WriteLine("\n公共运行库状态={0}", Environment.HasShutdownStarted); Console.WriteLine("\n计算机名={0}", Environment.MachineName); Console.WriteLine("\n换行符ACSII={0}", (int)Environment.NewLine[0] + " " + (int)Environment.NewLine[1]); Console.WriteLine("\n当前平台标识符和版本号={0}", Environment.OSVersion); Console.WriteLine("\nCPU个数={0}", Environment.ProcessorCount); Console.WriteLine("\n当前堆栈跟踪信息={0}", Environment.StackTrace); Console.WriteLine("\n系统目录={0}", Environment.SystemDirectory); Console.WriteLine("\n系统已启动毫秒数={0}", Environment.TickCount); Console.WriteLine("\n网络域名={0}", Environment.UserDomainName); Console.WriteLine("\n当前进程是否与用户正在交互={0}", Environment.UserInteractive); Console.WriteLine("\n用户名={0}", Environment.UserName); Console.WriteLine("\n运行库版本号={0}", Environment.Version); Console.WriteLine("\n物理内存={0}", Environment.WorkingSet); QQ:292258449