How to write a prog that write code to another .exe file.

How whode you go abaout writing a .exe file from a a other program?
I know that this is posibol can anyone point me in the right direction?
I whode be most greatfull..

Program shude do:

Open a CMD Window.
Give a option like What line to post in output.exe.
[1]Hello World
[2]Hello Mom
[3]Make .exe

output.exe is now in dir.\Release

This is just an exampel.
But hope you get what i mean?

Thanks to all that take the time.
You want one program to create another right?
Unless you want to learn machine code, you can only generate c++ code and call a compiler to make the exe.
Topic archived. No new replies allowed.