Renaming multiple files in a for loop with user input Windows batchfile
<p>I want to create a program that can loop through multiple pdf files and have the user rename each file a unique name like so:</p>

<ul>
<li><code>234324.pdf</code> to <code>Batch150.pdf</code></li>
<li><code>32154687.pdf</code> to <code>AdvancedPayment.pdf</code></li>
<li>and so on...</li>
</ul>

<p>Here is my code:</p>

<pre><code>setlocal EnableDelayedExpansion 


echo rename pdf files

FOR %%F IN (*.pdf) DO (  
  set /p x=Enter:
  move %%F !x!
) 
endlocal
</code></pre>

<p>This seems to work for the first file and then when I try to rename the second one it says: <code>The syntax of the command is incorrect.</code>.</p>

<p>I have tried using the <code>rename</code> command and haven't had much luck with it.</p>