title: How do I create a .bat file that will make iterative file names?
body: <p>I'm new to writing batch files so I'm still a trying to work things out. Basically, I want to create a <code>.bat</code> file that will create a list of directories with a incremented number on the end. For my example I will get files with the names "Week1", "Week2", "Week3" ... "Week52". My code is as follows:</p>
  
  <p><code>set "prefix=Week"
  for /l %%x in (1, 1, 52) do (
      set /a num=%%x
      set direc=%prefix%%num%
      mkdir %direc% 
  )</code> </p>
  
  <p>I think the trouble comes on the line where I concatenate the string and the numbers but I'm not 100% sure. Any pointers/corrections? Thanks in advance!</p>