tempad
ReadyGo!技术成就梦想 >>基础教程 >> c# 启动本机程序

c# 启动本机程序

ReadyGo!技术成就梦想 网络搜索 efish 2008-8-2 23:35:14
      using System;
        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");
                }
            }
        }
责任编辑: efish 参与评论 查找更多:
相关文章
c# 实现远程关机 c# 实现远程关机
C#创建不规则窗体代码 C#创建不规则窗体代码
如何为程式码加上行号 如何为程式码加上行号
ViewState使用兼谈序列化 ViewState使用兼谈序列化
微软CFO:10亿美元收购雅虎搜索 微软CFO:10亿美元收购雅虎搜索
百度首页添加hao123链接 百度首页添加hao123链接
希捷一年出货硬盘1.83亿块 每秒钟近6块 希捷一年出货硬盘1.83亿块 每秒钟近6块
IT界对云计算的20个定义 IT界对云计算的20个定义
用vim处理字符的大小写转换 用vim处理字符的大小写转换
Vim 使用技巧 Vim 使用技巧
2秒记住本站域名

玩过泡泡龙吗?Readygo?Go! 再加上.Com.Cn的后缀,那就是大名小顶的ReadyGo.com.cn

分类导航
ReadyGo!技术成就梦想