如何从应用程序中调用exe [英] how to call exe from an application
本文介绍了如何从应用程序中调用exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好!
我有一个要在其中调用另一个应用程序exe的应用程序
我这样使用它,并将其保存在调试文件夹中
hi to all!
i have an application in which i want to call another application exe
i use it like this and is save in debug folder
System.Diagnostics.Process.Start(Application.StartupPath + "\\ASD.exe");
在任何其他计算机上使用我的应用程序时,没有打开文件错误.
there is an error its not opening the file when a use my application in any other computer
推荐答案
所示代码仅在两个.EXE文件都在相同的文件夹:在安装程序时检查是否存在这种情况.如果使用标准安装程序,则可能会在应用程序数据文件夹而不是应用程序文件夹中找到ASD.EXE文件.
The code as shown will only work if both the .EXE files are in the same folder: check when you install your program that this is the case. If you use a standard installation program, then you may find the ASD.EXE file in the application data folder instead of the application program folder.
这篇关于如何从应用程序中调用exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文