I am trying to concatenate several files together using a Windows batch file to make a single image of the files. Now, I have found this can be done using copy "copy file1+file2+file3+file4 FileConcat" but what I want to do is to start file1 @ byte address 00, then start file2 @ byte address 999424, start file3 @ byte address 3997696 and file4 @ byte address 4001536. I can do this in Linux using the following but is there a way to do this in windows without writing a specific application? Any help, much appreciated.
set COMBINEDFILE=IMAGE/combined.srec
dd conv=notrunc bs=1 if=INPUT/FILE1.srec of=$COMBINEDFILE seek=0
dd conv=notrunc bs=1 if=INPUT/FILE2.xap of=$COMBINEDFILE seek=999424
dd conv=notrunc bs=1 if=INPUT/FILE3.html of=$COMBINEDFILE seek=3997696
dd conv=notrunc bs=1 if=INPUT/FILE4.js of=$COMBINEDFILE seek=4001536
Thank you for any help