Archive: Join Binary Files


Join Binary Files
is it possible to join 2 or more binary file into one?

me found that can use
FileOpen
to open a file in NSIS
and also by using
FileReadByte
to read a binary content,
but [FileReadByte] only possible to read single byte at once,
if me trying to read file with 1MB or more then it really slow and taking high CPU usage

is there have another way to read binary content or joining binary files?

thnx a lot


You could use the DOS copy command:

copy /B file1.exe+file2.exe file.exe

I'm sure you could put this into a Batch file and execute it or use ExecWait or something from within NSIS.


Yes, something like this:

Push $R0
ReadEnvStr $R0 "COMSPEC"
ExecWait "$R0 /c copy /B file1.exe+file2.exe file.exe"
Pop $R0


-Stu