[RESOLVED] Launching an exe from the resource
Hi,
I have a small console app which I want to be executed via the Process Class. What I am trying to figure out is, keep it inside the resource file of my Windows Forms Application, (that is hide it from the normal view) and execute it.
I tried googling and found that, that exe file needs to be written to a temp location and then only it can be executed! Is there any other way, say do it from the MemoryStream or something like that ? I mean, we can play wav files from resource file (background playing), like that can we do for an exe program ? Or the only possible solution to write to a file in temp path and then execute it from there ?
Any suggestions or clues would be helpful.
Thanks in advance :wave:
Re: Launching an exe from the resource
There is no other way. Windows executables cannot run other than as physical files.
Re: Launching an exe from the resource
It may be possible....but is it worth it ? You be the judge....look at post 3 here.
Re: Launching an exe from the resource
Thanks guys :wave:
I think it is better to leave the exe as it is or keep it embedded in resources and then create it temporarily when needed. :p