title: copy content from command prompt through command line
body: <p>I'm using <a href="http://www.ghostscript.com/" rel="nofollow">GhostScript</a> to get the resolution for a <code>PDF</code> file. When I pass this command:</p>
  
  <pre><code>gswin32c.exe -dBATCH -dNOPAUSE -q -sDEVICE=bbox D:\sample.pdf
  </code></pre>
  
  <p>I get this result: </p>
  
  <pre><code>%%BoundingBox: 67 59 772 1070
  %%HiResBoundingBox: 67.918568 59.278569 771.475406 1069.373006
  </code></pre>
  
  <p>I need to copy the result <code>%%BoundingBox: 67 59 772 1070</code> to a text or <code>XML</code> file using the command prompt.</p>