Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.