title: For loop in CMD... how to loop A to Z (for drive letters)
body: <p>How can I get drive the valid drive letters from A to Z with the "for loop" in windows command line (cmd.exe)?</p>
  
  <p>Example, list all files in a drive root folder, should be something like (conceptual):</p>
  
  <p><code>for %f in (A..Z) do dir %f:\</code></p>
  
  <p>or aproximating existing functionality:</p>
  
  <p><code>for /L in (A, Z, 1) do echo %f:\</code></p>