Batch File - Creating multiple files with different names <p>I have a batch file and it contains the following code:</p> <pre><code>@echo off color 0e :initialize set filemaker=1 echo How many files? echo. set /p uservar= echo Creating... for /l %%x in (1, 1, %uservar%) do echo. 2&gt;%CD%\%filemaker%.txt &amp; set /a filemaker=%filemaker%+1 &amp; timeout /t 1 /nobreak &gt;nul echo %filemaker% pause </code></pre> <p>And everytime I execute it, the file that are generated (regardless of the value of %uservar%) is ALWAYS name 2, and there is always ony one file! I would like multiple with different names like, file 1 is name 1, file 2 is name 2, and so on.</p> <p>Any help is appreciated!</p>