title: How to set commands output as a variable in a batch file
body: <p>Is it possible to set a statement's output of a batch file to a variable, for example:</p>
  
  <pre><code>findstr testing &gt; %VARIABLE%
  
  echo %VARIABLE%
  </code></pre>