title: How to insert the output of a command to variable in a batch file?
body: <p>Inside a batch file on Windows I would like some variable to have the output of <code>dir /b</code> command.</p>
  
  <p>How this can be achieved ?</p>