从应用程序中运行多个.exe [英] Run multiple .exe in from application

查看:294
本文介绍了从应用程序中运行多个.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我创建了一个主应用程序,从中必须运行其他三个.exe
我将其他EXE保留在我的主EXE待处理的同一文件夹中.
我在主exe上有三个按钮.

如果我按btn1则exe1应该运行.与btn2和btn3相同

我该怎么做?

hi to all!

i create one main application from which, i have to run three others .exe
I have keep other EXE''s in same folder where my main EXE pending.
and i have three buttons on main exe.

if i Press btn1 then exe1 should run. and same for btn2 and btn3

how can i do that ?

推荐答案

查看

是的,您可以使用以下代码进行操作

使用System.Diagnostics.Process调用EXE的

Yes, you can do it using following code

Use System.Diagnostics.Process to call the EXE''s

//take the Main EXE path and call using process.start
System.Diagnostics.Process.Start(Application.StartupPath + "\\EXE1.EXE");


是!!!或仅指定整个路径.然后尝试将@"
yes!!! or just specify the entire path..and try putting @""


这篇关于从应用程序中运行多个.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆