title: use DIR command output in batch
body: <p>I use command :</p>
  
  <pre><code>dir D:\ /b /A:D-H
  </code></pre>
  
  <p>and output is for example:</p>
  
  <ul>
  <li>Photos</li>
  <li>Wallpapers</li>
  <li>My Personal Data</li>
  </ul>
  
  <p>and.. I want to set varialeble on this folders as:</p>
  
  <hr>
  
  <p>set SOMEFOLDER=folder1</p>
  
  <hr>
  
  <p>set SOMEFOLDER2=folder2</p>
  
  <p>and ect.. </p>
  
  <p>How can I do this?</p>