title: List files with path and file size only in Command Line
body: <p><em>Windows Command Line (or maybe PowerShell).</em></p>
  
  <p>How can I list all files, recursively, with full path and filesize, but without anything else and export to a .txt file. Much preferably a code that works for whichever current directory I am in with the Command Line (so does not require manual entering of the target directory).</p>
  
  <p>None of these provides path\filename and filesize only:</p>
  
  <pre><code>dir /s &gt; filelist.txt
  dir /s/b &gt; filelist.txt
  dir /s/o:-d &gt; filelist.txt
  </code></pre>
  
  <p><strong>Desired output (fullpath\file.ext filesize):</strong></p>
  
  <pre><code>c:\aaa\file.ext 7755777    
  c:\aaa\bbb\1.txt 897667
  c:\aaa\bbb\2.ext 67788990
  c:\aaa\bbb\nnn\a.xls 99879000
  </code></pre>