1、获取命令行参数string[] args = Environment.GetCommandLineArgs();2、获取本地驱动器信息string[] derives = Environment.GetLogicalDerives();3、获取进程数Environment.ProcessorCount;