Thread: EXE files...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212

    Question EXE files...

    Hehehe...this is gonna get me flamed, but here goes:

    I know the structure of an exe file:

    Code:
    struct EXE {
    char ID[2];
    unsigned last;
    unsigned pages;
    unsigned reloc_items;
    unsigned header_size;
    unsigned minpara;
    unsigned maxpara;
    unsigned ss;
    unsigned sp;
    unsigned chksum;
    unsigned ip;
    unsigned cs;
    unsigned first_reloc;
    unsigned char ovr;
    };
    But how does it work, and how would I combine two .exe files without damaging either?

    Ideas?

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    >>But how does it work, and how would I combine two .exe files without damaging either?

    Huh???? Why????

  3. #3
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    Originally posted by Fordy
    >>But how does it work, and how would I combine two .exe files without damaging either?

    Huh???? Why????
    Y'know like once the first one has ran, the second one runs...so I could...um...like have a hello world program combined with a...um...goodbye world program.

    so it would be like

    >hello.exe
    Hello, world.

    >goobye.exe
    Goodbye, world.

    >combine.exe hello.exe goodbye.exe mixture.exe

    >mixture.exe
    Hello, world.
    Goodbye, world.

  4. #4
    Either look into DOS BATCH programming, or use the "system()" function.
    What will people say if they hear that I'm a Jesus freak?
    What will people do if they find that it's true?
    I don't really care if they label me a Jesus freak, there is no disguising the truth!

    Jesus Freak, D.C. Talk

    -gnu-ehacks

  5. #5
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212
    NO!
    I WANT TO COMBINE TWO .EXE FILES
    SO THEY BECOME ONE
    THE SECOND ONE EXECUTED AFTER THE FIRST ONE

  6. #6
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    In other words, you want to make a virus. You want to append or prepend a file to another, and execute them both.

    By the way: DON'T SHOUT IT IS NOT POLITE!

    Quzah.
    Hope is the first step on the road to disappointment.

  7. #7
    Registered User
    Join Date
    Oct 2001
    Posts
    43
    Why not just type the code and make one [*.exe] file?
    ()(ôô)()© MonKey ware
    Kyle J. R.

  8. #8
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020
    Because he wants to combine files dynamically. Like combing any two files.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  2. fopen vs. _open (for BIG image files)
    By reversaflex in forum C Programming
    Replies: 3
    Last Post: 04-01-2007, 12:52 AM
  3. Large exe files for small amounts of code problem
    By rainmanddw in forum C++ Programming
    Replies: 4
    Last Post: 11-03-2003, 05:52 PM
  4. I Need To Know Some Things That I Can Put Into A Batch File
    By TheRealNapster in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 10-20-2003, 08:12 PM
  5. How to link bpl files into exe?
    By Unregistered in forum C++ Programming
    Replies: 0
    Last Post: 06-22-2002, 10:38 AM