title: Batch file - Write list of files to variable
body: <p>I'd like to get a list of all files (including their absolute path) into a variable, separated by spaces.  My Google-fu seems to be weak in this regard, because I keep running into issues.</p>
  <p>I have a base directory stored in <code>%baseDir%</code>, and would like to parse it for files (not recursing or including sub-directories).  Like I mentioned, this needs to go into a list.  I'd imagine there's a nice little shortcut I could use, but a for loop and concatenation would do the trick as well.</p>
  <p>Ideally, I'd have something like this:</p>
  <pre><code>echo fileList
  
  C:\file1.c C:\file2.c C:\file3.c
  </code></pre>