Click here to Skip to main content
15,914,387 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
C#
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
Posted
Updated 25-Sep-11 21:38pm
v2

1 solution

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.
 
Share this answer
 
Comments
kami124 26-Sep-11 3:43am    
so where actually i have to save my ASD.EXE
OriginalGriff 26-Sep-11 3:50am    
"The code as shown will only work if both the .EXE files are in the same folder"

So, that give you any clues? :laugh:
kami124 26-Sep-11 5:00am    
ok thanks for helping me partially
Timberbird 26-Sep-11 3:50am    
As your code looks now - just in the same folder where your application exe file is. On your computer (during development) this is Debug folder.
If you deply your application on other computers simply copying files, copy ASD.exe with your application exe. If you use installers, include ASD.exe in the package and instruct your installer to put in the same folder with application exe
kami124 26-Sep-11 4:01am    
oh! ya i got it what a silly mistake it is
then i shall combine multiple exe to one exe

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900