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 have a binary file and I want to add a specific byte to the beginning of this file. How can I do it?

share|improve this question

closed as too broad by allquixotic, Mokubai, Dave M, Moses, Carl B Nov 21 '13 at 4:51

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

use a hex editor – Ramhound Nov 20 '13 at 19:29
Hi, can you please indicate what type of technology you are interested in using to accomplish this? A programming language? If so, which one? How about a command shell? Again, if so, which one? Are you looking for a specific pre-packaged program? With a GUI, or on the console? Etc. This question is so broad with so many possible answers that we have to narrow it down somewhat, or it'll be closed as too broad. – allquixotic Nov 20 '13 at 19:29
@allquixotic Ideally I would like to be able to do it from cmd.exe with some kind of utility. – Sunny88 Nov 20 '13 at 19:33
copy OneByteFile.bin+FileToPrepend.bin NewFile.bin? – Ƭᴇcʜιᴇ007 Nov 20 '13 at 19:42
@techie007 How can I create the OneByteFile.bin ? Say I want it to contain the byte 0x4d. – Sunny88 Nov 20 '13 at 19:46