title: Certutil with Batch Script
body: <p>Trying to encode all my *.pdf and *docx within a folder and its subdirectories, to base64. So far, since the certutil specifies "from source" "to destination" or an overwrite with -f switch, am clueless on how to get this working, even with a FOR loop. Thanks for your help.</p>
  
  <p>Thanks putu. Corrections taken. Well, am trying to overwrite the existing documents to its base64 encoding which I've been successful in doing one document at a time. The challenge is in automating the process into all documents in folders and sub-folders. I've tried using the the "for" statement:</p>
  
  <p>for /R %%a in (*.docx, *.pdf) do certutil -f -encode %%a %%a. </p>
  
  <p>This was just a test as certutil don't have any syntax for encoding multiple files at once.</p>