从一个开始两个.exe [英] start two .exe from one

查看:78
本文介绍了从一个开始两个.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个exe应用程序(不知道用哪种语言编写),我想在启动第一个exe时启动另一个exe(由我在c#中制作).
我不想在我的exe文件中使用Process.Start(),因为第一个exe文件不应单独启动.

I have an exe application (don''t know in what language is writen) and I want to start another exe(made by me in c#) when the first exe is started.
I don''t want to use Process.Start() in my exe because the first exe shouldn''t be started alone. Any solution?

推荐答案

我认为您无法修改第一个exe,这限制了您可以执行的操作.

我的解决方案?在检查其他程序是否正在运行之后,我将在自己的exe中使用Process.Start.如果不是,请运行它.如果可以的话,一切都很好.
或者,编写第三个控制台-但-不-显示应用程序,以正确的顺序启动它们,然后退出.

启动两个程序时,没有其他可靠的解决方案,除非可以同时编辑两个程序的源代码.
I assume you can''t modify the first exe, which restricts what you can do.

My solution? I would use Process.Start in my exe after checking to see if the other is running. If it isn''t, run it. If it is, all ok.
Or, write a third console - but - no - display application which starts them both in the right order and then exits.

There is no other reliable solution to running two programs when you start one, unless you can edit the source of them both.


这篇关于从一个开始两个.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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