title: How to generate encrypted doc using gnupg via command line?
body: <p>I need some assistance to generate encrypted documents using <a href="https://www.gnupg.org/" rel="nofollow noreferrer">https://www.gnupg.org/</a> software.</p>
  
  <p>They have provided the command line as per following.</p>
  
  <pre><code>alice% gpg --output doc.gpg --encrypt --recipient blake@cyb.org doc
  </code></pre>
  
  <p>But I am not getting as per my file structure how I am suppose to do same.</p>
  
  <p>Please check the following file structure.</p>
  
  <p>Public Key      : C:\Encryption\PB_Key.asc</p>
  
  <p>File need to encrypt    : C:\Encryption\Test.txt </p>
  
  <p>Bat file        : C:\Encryption\Test.bat </p>
  
  <p>gpg.exe         : C:\Program Files (x86)\GnuPG\bin\gpg.exe</p>
  
  <p>UserName        : Test</p>
  
  <p>I did some research and found few links </p>
  
  <p><a href="https://stackoverflow.com/questions/36305319/batch-encrypt-with-public-key-using-gpg4win-command-line">Batch encrypt with public key using Gpg4win command line</a></p>
  
  <p>Need assistance to incorporate above.</p>