title: How to make move files on a variable folder
body: <p>Someone from here give me this code to have a create number of folders depending on how many user wants</p>
  
  <p>and I was thinking if I'm still able to add an algoritm that will move files equally to the folders created how am I going to do it? </p>
  
  <pre><code>@echo off
  set "FolderCount=1"
  
  set /P "FolderCount=Enter number of folders (default: %FolderCount%): "
  
  for /L %%N in (1,1,%FolderCount%) do md "Folder%%N" 
  </code></pre>
  
  <p>I need it badly. Any advice,suggestions,comments will be appreciated.</p>
  
  <p>This is what I did</p>
  
  <pre><code>@echo off
  set "FolderCount=1"
  set /P "FolderCount=Enter number of folders (default: %FolderCount%): "
  for /L %%N in (1,1,%FolderCount%)  
  do md "Folder%%N"
  for %%f (*.txt)
  
  move /y "%%f" "Folder%%N"
  
  set "FolderCount="
  </code></pre>