现在的位置: 首页 > 综合 > 正文

今天看到一个C#写的启动windows应用程序的功能,感觉很好

2013年05月19日 ⁄ 综合 ⁄ 共 470字 ⁄ 字号 评论关闭
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 
{ 
  public partial class Form1 : Form   
   
     {   
   
         public Form1()   
   
         {   
   
             InitializeComponent();   
   
         }     
   
         
      private void button1_Click_1(object sender, EventArgs e) 
      { 
         Process.Start("TTPlayer.exe"); 
      } 
       
   
     }   
   
         
}

你要是想启动什么应用程序,只需在Process.Start("")中填上程序的名字即可

抱歉!评论已关闭.