title: In cmd how do I extract filenames from a folder and then use filename to create directory in same path for each filename
body: <p>I am trying to get a cmd to extract filenames (around 400 plus) from a directory and then create individual folder for each file name in a separate directory. </p>
  
  <pre><code>SET Count=0
  FOR %%A IN (%DIRTOSARCH%\*.xml) DO SET /A Count += 1
  ECHO.%Count%
  </code></pre>
  
  <p>Above code is: get count of .xml files in a folder and then I want to create folder for each filename in separate folder.</p>