EXE as resource

murrayf1

Member
Joined
May 5, 2006
Messages
21
Programming Experience
1-3
Hi Currently i have an application that calls another application in our program files folder, is it possible to imbed this as a resource in the main exe

I have got the exe file in as a resource but im not sure how i can run it any help please?
 
An executable has to be run from disc, so if you embed it as a resource you'd still have to extract it and save it to disc as a file so you could run it. You may as well just include it as a content file and distribute it with your main app.
 
Why do you want to make it a resource, really? That's a very unusual thing to do. I've never seen it done before and I think it's a bad idea. If you really must do it then just add it as a file resource on the Resources tab of the Project properties. Then when you retrieve the resource via My.Resources you get a Byte array. You can create a FileStream and Write the Byte array to it to save it to disc.
 
Back
Top