登录
首页 » 其他 » C# 调用外部的EXE文件

C# 调用外部的EXE文件

于 2023-06-03 发布 文件大小:14.74 kB
0 1008
下载积分: 2 下载次数: 1

代码说明:

C# 调用外部的EXE文件,程序中主要是使用System.Diagnostics.Process.Start(textBox1.Text);来执行外部的exe文件。   private void button1_Click(object sender, EventArgs e)   {    openFileDialog1.Filter = "exe文件(*.exe)|*.exe";//设置打开文件的格式    if (openFileDialog1.ShowDialog() == DialogResult.OK)//判断是否选择了exe而文件    textBox1.Text = openFileDialog1.FileName;//显示选择的文件   }   private void button2_Click(object sender, EventArgs e)   {    System.Diagnostics.Process.Start(textBox1.Text);//执行exe文件   }

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • joyous ringing ringing joyous joyous ringing joyous
    叮叮咚咚 叮叮咚咚 -joyous ringing ringing joyous joyous ringing joyous
    2022-03-10 10:26:24下载
    积分:1
  • One on BPSK BER simulation procedures, including the signal generated by adding...
    一个关于BPSK误码率仿真的程序,其中包括信号产生,加入高斯白噪声,和误码率计算!-One on BPSK BER simulation procedures, including the signal generated by adding Gaussian white noise, and bit error rate!
    2022-12-05 12:55:03下载
    积分:1
  • poj 1038 AC程序 第一次上载,不知道合适否
    poj 1038 AC程序 第一次上载,不知道合适否-poj 1038 AC program to upload the first time, I do not know whether the right
    2022-01-30 20:07:46下载
    积分:1
  • 该程序实现的是种子生命的模拟,生存:有两个或三个邻居的种子将存活到下一代,即仍然占据该格子; 死亡:如果有四个或更多的邻居,种子将因为过度拥挤而死亡;如果种...
    该程序实现的是种子生命的模拟,生存:有两个或三个邻居的种子将存活到下一代,即仍然占据该格子; 死亡:如果有四个或更多的邻居,种子将因为过度拥挤而死亡;如果种子只有一个或零个邻居,将因为孤独而死亡; 繁殖:如果一个空格子有三个邻居,那么将会长出一粒新种子。一种模式在经过若干代之后有以下四种可能的结局之一: 消亡; 不变――静态; 振荡――在一组模式间循环多次后在相同的位置出现相同的模式; 滑动――在一组模式间循环多次后在不同的位置出现相同的模式。该程序允许用户指定初始的模式或计算机自动创建初始的模式; 显示进化的过程,即历代模式; 当模式消亡就停止进化,或者提示用户是否继续显示下一代,或开始新的案例,抑或退出。 -The program implementation is the seed of life simulation, survival: There are two or three neighbors of the seed will survive to the next generation, that is still occupying the lattice Death: If there are four or more neighbors, the seeds will die because of overcrowding if seed is only one or zero neighbors, will die because of loneliness Breeding: If a sub-space has three neighbors, then it will grow a new seed. After a pattern after several generations have the following one of four possible outcomes: Die Constant- static Oscillation- a group of modes in the loop on many occasions in the same location after the same pattern emerged Sli
    2022-03-25 01:15:01下载
    积分:1
  • soap服务实例,通过此实例能初步了解php的soap服务,大家可在此基础上修改...
    soap服务实例,通过此实例能初步了解php的soap服务,大家可在此基础上修改-soap service instance, through this instance can be a preliminary understanding of php" s soap service, we can be modified on this basis,
    2022-01-30 17:48:13下载
    积分:1
  • 改程序描述了,在vs中数据库的一系列的用法,重数据库的链接,数据库的创建,数据库的访问和数据库视图的建立,数据库修改等基本的过程。不愧为学习数据库的好例子。...
    改程序描述了,在vs中数据库的一系列的用法,重数据库的链接,数据库的创建,数据库的访问和数据库视图的建立,数据库修改等基本的过程。不愧为学习数据库的好例子。-Change procedure described in the series vs the usage of the database, re-link to the database, database creation, database access and database view creation, database, modify the basic process. Worthy of study and a good example of the database.
    2022-02-04 00:48:03下载
    积分:1
  • 对时间滞后系统进行状态反馈控制器参数设计
    对时间滞后系统进行状态反馈控制器参数设计-Time-lag system for the design of state feedback controller parameters
    2022-11-04 17:25:03下载
    积分:1
  • source insight的EM文件 可以扩展SI的宏功能
    source insight的EM文件 可以扩展SI的宏功能-The EM file source insight can be extended macro function SI
    2022-03-17 19:52:32下载
    积分:1
  • 贪吃蛇2005 + 源程序  贪吃蛇 一个经典的小游戏,本人精心制作,相信会比它所谓的贪吃蛇效果好很多。希望大家能提出更多宝贵的意见。游戏规则: 利...
    贪吃蛇2005 + 源程序  贪吃蛇 一个经典的小游戏,本人精心制作,相信会比其它所谓的贪吃蛇效果好很多。希望大家能提出更多宝贵的意见。游戏规则: 利用方向键控制蛇头运动,当蛇头碰到食物即吃到食物,获得积分; 在此过程中不允许蛇头出界或碰到身体,否则游戏结束。基本操作: 程序运行后输入数字0-9,选择级别;任何时候按Esc键即退出游戏;用键盘方向键控制蛇头运动方向;按任意键暂停,方向键和组合键除外;暂停后,按方向键继续游戏;出错后会出现是否继续游戏的提示,Y继续,N结束。 -2005 Snake Snake source of a small classic game, I carefully made, I believe other than the so-called Snake many good results. Hope we can put forward more valuable suggestions. The rules of the game : direction control keys snakeheads campaign, when the food is encountered snakeheads eat food, access points; In this process does not allow out-of-bounds snakeheads or physical encounter, the end of the game. Basic operation : running after importation figures 0-9, choose level; By any time that the Esc keys out of the game; The keyboard keys to control the direction snakeheads movement direction; Keys suspended by the arbitrary direction keys and key combinations exception; Following the suspension, according to the direction keys to th
    2022-12-13 12:15:03下载
    积分:1
  • 用VC实现的扫雷小游戏,操作界面简单,可在休闲时玩一玩
    用VC实现的扫雷小游戏,操作界面简单,可在休闲时玩一玩 -Realize the mine with VC game, user interface simple, leisure time in play
    2022-02-09 17:56:36下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载