0

Is it possible to bind two files into one file ? If its possible how ?

E.g if i got two files a.exe and b.exe then i want to bind them into c.exe so when i execute c.exe it'll automatically execute a.exe and b.exe

Thank

ravedome
  • 1
  • 1

3 Answers3

4

Process.Start

spender
  • 112,247
  • 30
  • 221
  • 334
1

As far I know it is not possible to bind to compiled assemblies into one. But you could package them into a WINRAR executable archive as an installer. Heres the idea although lousy it is viable,

you have a.exe, b.exe and c.exe

add all three to a Winrar archive and configure it so that c.exe is executed after the package is extracted so c.exe can execute a.exe and b.exe

like so

System.Diagnostics.Process.Start("a.exe");
System.Diagnostics.Process.Start("b.exe");
Vivek Bernard
  • 2,043
  • 3
  • 25
  • 43
0

You can simply import the exe as a resource of your program,then dump it's data to a file and execute it.

Here is another answer that may help you.

maninak
  • 2,398
  • 1
  • 16
  • 30
AxissXs
  • 52
  • 9