K3

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

如何启动.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
posted on 2005-04-17 19:07  K3  阅读(618)  评论(0编辑  收藏  举报