Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for Tool/Utility with which I could copy one file inside another, but with option to specify target location in second file. And it must overwrite overlapping content not insert.

for example I've file A.dat with content "ABCDE" and second file B.dat with content "1234567890"

so I specify to copy A.dat inside B.dat at 4th byte and result file would be "123ABCDE90"

it must be with command-line interface and for Windows.

share|improve this question
up vote 3 down vote accepted

How about dd for windows

dd if=A.dat of=B.dat seek=4 bs=1 count=5
share|improve this answer
yes, that's exactly what I was looking for, thanks :) – davispuh Oct 6 '11 at 12:15

Take a look at dd for Windows. "dd" is a unix utility to do exactly what you're asking for, and there are several Windows ports available.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.