title: How can I use the results of a DIR Query as VAR's
body: <p>I am working on a Batch file and have made it pretty easy to use, but I would like it "Fool Proof" or as close as I can get. 
  What I am currently doing it displaying a list of folders and asking the user to type out the name of the folder from the list they are using. What I would like is if they could just type 1 for the first result, 2 for the second and so on.</p>
  
  <p>Current lines in question</p>
  
  <pre><code>DIR /b "c:\ProgramData\Nuance\%var1%\Users\" | findstr /v "(DGN_RENAMED)" 
  SET/p var2="Please type out the Provider voice file name from the list above."%
  </code></pre>
  
  <p>Which will display folder names like below</p>
  
  <p>Cameron</p>
  
  <p>JeffG</p>
  
  <p>DR. Lemper</p>
  
  <p>Snyder</p>
  
  <p>Then the user would have to type in JeffG, which leaves room for error, It wont break anything but will waste a few seconds.</p>
  
  <p>What I would like is to display the folders listed in "c:\ProgramData\Nuance\%var1%\Users\" numbered and set them as variables like Below and have ot to where they only need to type in the number associated to the folder name</p>
  
  <p>1.Cameron</p>
  
  <p>2.JeffG</p>
  
  <p>3.Dr.Lemper</p>
  
  <p>4.Snyder</p>