So Any Questions?? Me Again Sir.

Jul 17, 2011 at 11:48pm
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 Jul 17, 2011 at 11:49pm
Jul 18, 2011 at 1:57am
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.
Jul 18, 2011 at 2:40am
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.
Jul 18, 2011 at 4:33am
Why do you want to "EDIT" a .exe file????

Try opening it with notepad.
Jul 18, 2011 at 4:38am
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
Jul 18, 2011 at 10:59am
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 Jul 18, 2011 at 2:11pm
Jul 19, 2011 at 1:10am
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).
Jul 19, 2011 at 5:45am
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();
Jul 19, 2011 at 8:33am
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.
Jul 19, 2011 at 8:38am
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.
Jul 19, 2011 at 4:42pm
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.