[C#] Putting programs in your resource folder? how?

Extreme Coder - Delphi
Loyal Member
Joined
Sep 8, 2007
Messages
1,381
Reaction score
39
Is it possible to load save a exe file as a resource and launch it when you launch or press a button in your program.

e.g

Public Void Button_Clicked();
{
// runs the exe in the resource folder inside the program
}

thanks in advance
 
Is it possible to load save a exe file as a resource and launch it when you launch or press a button in your program.

e.g

Public Void Button_Clicked();
{
// runs the exe in the resource folder inside the program
}

thanks in advance


Yep. You want to look up the Reflection class. Essentially you will load up the bytes into an Assembly class and then using Reflection to load the .net assembly from memory/resources. Codeproject.com has some nice example Reflection projects.
 
Back