当前位置: 电脑软硬件应用网 > 设计学院 > 网络编程 > C语言 > 正文 |
|
|||
c# 启动本机程序 | |||
2008-7-27 19:50:19 文/未知 出处:电脑爱好者 | |||
using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using System.Runtime.InteropServices; using System.Security; using System.Diagnostics; //命名空间提供特定的类,使您能够与系统进程、事件日志和性能计数器进行交互。 namespace WindowsApplication1 { /// <summary> /// 启动本机系统程序 /// 只需要把程序的exe文件写入Process.Start("")中就行 /// </summary> public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Process.Start("calc.exe");//计算器 } private void button2_Click(object sender, EventArgs e) { Process.Start("TTPlayer.exe"); } private void button3_Click(object sender, EventArgs e) { Process.Start("IEXPLORE.EXE"); } } } |
|||
最新热点 | 最新推荐 | 相关文章 | ||
用C语言实现的闹钟程序 C#实现Windows关机的代码 用动态规划法求组和数的算法 循环结构程序具有哪3个组成部分? const成员函数有什么特点? c语言求平均分程序 一道关于指针的C语言题 C语言求3个整数的最大公约数 BM模式匹配算法C语言实现 从键盘输入任意5个4位整数存入数组a… |
关于45IT | About 45IT | 联系方式 | 版权声明 | 网站导航 | |
Copyright © 2003-2011 45IT. All Rights Reserved 浙ICP备09049068号 |