How to combine two scripts into one?

Hey .... i want to know how i can combine two .exe files into one?

  • 1.I have tried to combine them using iexpress.exe but it is weak as it gets extracted easily using winrar. Basically what i want to make is .exe file that will execute only if certain conditions are met. (like dell softwares executes only on dell pc).So , for this i have made a .bat file that searches user bios to check that if it is a dell pc than it calls the b.exe to execute. so know i want this b.exe to combine with bat file so that only one .exe file is left . (i dont want others to see the code. and also dont want that they directly access b.exe by simply extracting).................. I have the knowledge of java,c++. thanks in advance and if any idea aur more secure way to do this then please suggest me.

  • Answer:

    I'm not sure what language your b.exe program is written in, but one way would be to include all of the commands that are currently in your .bat file at the start of your b.exe program. Almost all languages have support for calling various system functions. UPDATE: OK, I did not know that you did not write b.exe, and it is just an executable that you downloaded from the web (which means, I assume, that you do not have access to the source code for the executable). Depending on how sophisticated/obfuscated the original code that produced b.exe is, the program may be either relatively simple, or nearly impossible, to decompile into source code. If it is commercially produced software, I would guess that it is more toward the "nearly impossible" end, so Colin's suggestion of decompiling below may not be very realistic. Another method that does not require complete decompiling would be to use a *disassembler* to disassemble the executable into assembly language. You can then also disassemble your .bat executable file, and then merge the two pieces of assembly code, then re-assemble the whole thing into a merged executable. The merging of the assembly code must be done very carefully, however, so that you don't produce terrible errors for your OS during runtime. If you are not well-versed in assembly and systems operations, I would not recommend that you try to do it.

Arjun at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

You need to be a very experienced C programmer. I suspect you are not or you would not be mentioning Java here, it bears no relationship at all to this problem. You need to write a C code version of the bat file. You would then need to decompile the other program and modify it to include the code you have written. The re-compile and debug the program as a whole.

Colinc

you can combine it using many by selecting the folders properties

Mark

If you know C++ why do you use a bat file? What you are asking for is very easy to do, but it doesn't seem legit.

anto

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.