So Any Questions?? Me Again Sir.

closed account (9wX36Up4)
Hi Guys

I know how to open and use a text file but what if i want to make it work that a .exe File? I mean what can i do?

Thanks in Advance
Last edited on
To modify binary files, you can use a Hex Editor instead of Text Editor. But be careful, if you modify the wrong values in the wrong byte position can render the exe file in-operable afterward.
Do you want to know how to read and modify the content of an executable, or how to execute a file? Your question is not clear.
Why do you want to "EDIT" a .exe file????

Try opening it with notepad.
Maybe not a .exe file but some games data file (high scores,number of lives etc etc) which are stored in binary format. A cheat code so as to speak :P
closed account (9wX36Up4)
i m sorry if i be unclear i mean i want an exe file to work and close when i want. Not to mean open an exe file as text.
Last edited on
I don't understand your question. To run an exe, in Windows you double-click the exe. To close, you click on the X at the top right corner (most software follow this convention).
i think you want this
1
2
3
4
5
6
7
8
...
#include<cstdlib>
..
..
..
system ("explorer.exe");
..
..


note: everybody say that its bad to use system();
I don't understand your question. To run an exe, in Windows you double-click the exe. To close, you click on the X at the top right corner (most software follow this convention).


I think he wants to know that is there a way to make the program that he is writing to execute another program during run-time.
I see. I guess other ppl has given him the solution. But I think system is not a standard function. However in Unix/Linux they do have a system function call. Not sure of Windows platform though.
closed account (9wX36Up4)
sorry but i can't speak english very well and sometimes i live many problems laike this but tejashs solved and understood my problem thank u all anyway
Topic archived. No new replies allowed.