Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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.
Posted
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)

Posted (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 helps

Embedded.zip

Edited by PlausiblyDamp
Posted
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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...