C# 小技巧

如何启动.exe文件?


System.Diagnostics.Process.Start(
"iexplore.exe","http://www.sina.com.cn"); 


System.Diagnostics.Process.Start();

---------------------------------
获得桌面路径:

Environment.GetFolderPath(Environment.SpecialFolder.Desktop).ToString 

---------------------------------

获得系统盘符:

System.Environment.GetEnvironmentVariable("SystemDrive")
---------------------------------
得到屏幕分辨率:
System.Windows.Forms.Screen.PrimaryScreen.Bounds
原文地址:https://www.cnblogs.com/sskset/p/139329.html