title: How can I convert a HEX code of a Binary file (.exe/.dll/.ocx) and write to a folder as a binary file using BAT?
body: <p>I am trying to write a <strong>BATCH</strong> program which can convert the <strong>HEX</strong> code of the binary which is stored as a string in the batch program and then write to a binary <strong>EXE/DLL/OCX</strong>.</p>
  
  <p>I have found a command-line program which can do this but the hex string needs to be stored in a file rather than a string inside the <strong>BATCH</strong> program.</p>
  
  <pre><code>CertUtil [-f] [-v] -decodehex {InFile} {OutFile}
  </code></pre>
  
  <p><strong>RESOURCE:</strong> <a href="https://technet.microsoft.com/en-us/library/cc732443.aspx" rel="nofollow">CertUtil Command</a></p>