Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 605087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:06:30+00:00 2026-05-13T17:06:30+00:00

Is there a way to merge two exe files into one, programmatically, so that

  • 0

Is there a way to merge two exe files into one, programmatically, so that running it would execute both older exe files together. I found some things on google about injecting code or dll files but is it possible two merge two exe files or to inject exe into exe?

Thanks in advance.

[EDIT]
Thanks everyone. Just for those who said that it’s not possible, I have to say I almost did it in the end in the way some suggested. It almost goes like this (I can’t remember all of it cos it was a long time ago):

[BEWARE: This algorithm is very similar to those of some worms and viruses. I am not a hacker or a virus writer! and this is to be used only for experimental or unharmful reasons – Making mistakes in the code can ruin the executables in directories.]

1- The Exe checks itself’s size to detect whether anything has been appended to itself. if it hasn’t then:

     1.1- The exe finds other executable files in its directory (lets call one of them as victim!)
     1.2- it makes a copy of itself (lets call it newMe)
     1.3- it copies the other executable found in the directory to the end of newMe.
     1.4- it deletes the other executable file found and renames newMe to its victim's name.

2- If the exe detects that something has been added to it then:

     2.1- Then it copies data from itself (from ORIGINAL_FILE_SIZE to the end of file) to a new file (lets call it newBorn.exe)
     2.2- It runs itself's code and then executes the newBorn.

I said I ALMOST did it cos in this way the exe appends another exe to itself. but this could be repeated for appending and executing 2 or even 3 or more executables into one. you just have to know the ORIGINAL_FILE_SIZE of the written program.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:06:30+00:00Added an answer on May 13, 2026 at 5:06 pm

    Theoretically this is possible, but it will take some effort from your side.

    You can append data to an exe file, this is how self extracting archives work. However, you’ll need your own data format, similar to a file system, because you’ve got just one flat .exe file.
    See this Microsoft article (there’s a lot more on google) http://support.microsoft.com/?scid=kb%3Ben-us%3B84062&x=12&y=13

    The exe you’re packing your two files in must then extract those files and can finally run them.

    Good luck.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to merge two users' history into one user in SVN?
Is there a way to merge two primary keys into one and then cascade
Is there a way to merge(union without dupes) two given lists into one and
Is there a way in C# to merge two dictionaries? I have two dictionaries
Is there an easy way in Common Lisp to merge two plists? Or from
What would anyone consider the most efficient way to merge two datasets using Python?
Is there an easy or elegant way to merge two hashes without overwriting duplicate
Having two InputStreams in Java, is there a way to merge them so you
Is there a way, to merge two dataTables table1 and table2 by different keys?
Is there a way to exclude a specified file from the merge process? when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.