|
-
Nov 4th, 2012, 11:11 AM
#1
[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
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
-
Nov 4th, 2012, 11:16 AM
#2
Re: Launching an exe from the resource
There is no other way. Windows executables cannot run other than as physical files.
As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"
Reviews: "dunfiddlin likes his DataTables" - jmcilhinney
Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!
-
Nov 4th, 2012, 11:11 PM
#3
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.
-
Nov 5th, 2012, 08:41 AM
#4
Re: Launching an exe from the resource
Thanks guys 
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.
If my post was helpful to you, then express your gratitude using Rate this Post. 
And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet
Social Group: VBForums - Developers from India
Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|