Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hello,

Can we build one exe in another exe in c# .net windows application?

I want to run an exe in internal other exe, So, how it can be possible?

Please help me.

Thanks in Advance.

Ankit Agarwal
Software Engineer
Posted

1 solution

I didn't understand your requirement but i think you are trying to run another .exe file in your windows application
You can run .exe file in this way.


C#
System.Diagnostics.Process.Start(@"path of exe");


e.g.

C#
System.Diagnostics.Process.Start( @"C:\Windows\System32\Notepad.exe" );
 
Share this answer
 
Comments
[no name] 12-Jun-14 3:30am    
I want to place another exe in main exe, It should not visible for user, Use can show only main application exe.
Nirav Prabtani 12-Jun-14 5:28am    
you can put path for calling external exe as given in my solution. but beware external exe should be there on given path.
[no name] 12-Jun-14 5:32am    
how can we write internal path in c# .net windows application?
adriancs 12-Jun-14 10:28am    
write the file to Temp folder and run it from there

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