PaulieORF Posted March 16, 2005 Posted March 16, 2005 I'm wondering if and how I can execute an EXE that I've embedded into my VB.NET application. I know how to utilize other filetypes that are embedded, like text files and images, but don't know how to execute embedded applications. I've done lots of searching on this, found people who asked how to do the same thing, but none of them were answered. Thanks. Quote
thenerd Posted March 16, 2005 Posted March 16, 2005 I'm not sure what you mean by embedded. If you want to run another program you can use System.diagnostics.process.start(filenameofexecutable,optionalotherfiletostartwithit) Quote
Talyrond Posted March 16, 2005 Posted March 16, 2005 (edited) Hi, yes this is possible, see the attached project I did as a test for myself a while ago. Basically there is an exe (unmanaged, but that does not matter) embedded, called text.exe. When you run the project it will extract the exe to the same folder as the project exe and then run the program. Just to satisfy yourself, delete the test.exe and it will be created every time! Test.exe just prints a message to a command window, please excuse the message, it is not directed at you, just my sense of humour!! Hope this helpsEmbedded.zip Edited March 19, 2007 by PlausiblyDamp Quote
PaulieORF Posted March 16, 2005 Author Posted March 16, 2005 Hi, yes this is possible, see the attached project I did as a test for myself a while ago. Basically there is an exe (unmanaged, but that does not matter) embedded, called text.exe. When you run the project it will extract the exe to the same folder as the project exe and then run the program. Just to satisfy yourself, delete the test.exe and it will be created every time! Test.exe just prints a message to a command window, please excuse the message, it is not directed at you, just my sense of humour!! Hope this helps Thank you! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.