System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo();
            Info.FileName = "calc.exe";//调用系统计算器

           //timedate.cpl    调用系统时间设置;

           //notepad.exe 调用系统记事本;

           //其他的类似,只要把程序的名字换下就可以了。
            Info.WorkingDirectory = "%SystemRoot%\\system32\\";
            try
            {
                System.Diagnostics.Process.Start(Info);
            }
            catch(Exception ex)
            {
                MessageBox.Show(ex.Message.Trim());
            }

posted on 2008-08-04 12:03  王朝东  阅读(391)  评论(0编辑  收藏  举报