DIGIT-ARC read-only archive · snapshot: July 23, 2026

Output Exe File - Extract it from another Exe

2 posts · originally from https://geek.digit.in/community/threads/output-exe-file-extract-it-from-another-exe.140198/

B
bagsfr Original post #1
May 4, 2011 at 2:16 PM
Hello guys, I want to ask you for a little help.
I wand to find out how to make such a executable file (in C++), that if it is run, it will extract another executable Exe e.g to directory C:\\my_extracted_file.exe. And that my_extracted_file.exe should display some MessageBox, if it's run.


I hope, that someone will help me, I read alots of internet articles about this, but I failed...
Please don't post me some references, I can't understand it somehow. I would be very delighted if you show me some example code (C++).
arpanmukherjee1
May 4, 2011 at 3:41 PM
what exactly do you mean by "extract" ?? compile ??

use my post from here
change it to C++ code
hard code your program

OR

you can write the program to a file say C:\example.cpp
and use this method to compile the program.

info on CL.exe compiler Compiler Command-Line Syntax (C++)