Click to See Complete Forum and Search --> : questions about .exe-s


Feoggou
September 27th, 2009, 12:31 PM
Hello.

Is there a format for .exe files? I know they can have resources. Knowing that there are programs to extract the resources from it, makes me believe there is a format. Can somebody tell me how things are arranged in an .exe file?

And, one more question: if I concatenate two .exe files, why is it that only the first gets executed? is there a way I can make both execute?

PeejAvery
November 20th, 2009, 10:44 AM
Concatenate EXEs?

Feoggou
November 21st, 2009, 02:24 PM
no, it does not work.

only the first one gets executed. the one concatenated never gets executed.

PeejAvery
November 22nd, 2009, 06:12 PM
I'm asking...What do you mean by concatenate EXEs? Hence the question mark.

Feoggou
November 23rd, 2009, 04:28 AM
by concatenating 2 files, I mean, reading the first file in a buffer, write the buffer in in the result file, read the second file in a buffer, write the buffer in the result file.

that is, in pseudocode:
resultfile.create();

file1.open();
file1.read(buffer);
resultfile.write(buffer);
file1.close();

file2.open();
file2.read(buffer);
resultfile.write(buffer);
file2.close();