title: My Batch File keeps looping, but why?
body: <p>I have written a batch file from a VB.NET program I'm creating.</p>
  
  <p>When I double click on the file in Windows XP it brings up a Command Prompt and appears to be running over and over again.</p>
  
  <p>My batch file is as follows</p>
  
  <pre><code>REG ADD "HKCU\Software\Classes\*\shell\Open Folder In Rename" /ve /t REG_SZ  /d "Open With Rename" /f
  REG ADD "HKCU\Software\Classes\*\shell\Open Folder In Rename\Command" /ve /t REG_SZ  /d "P:\Misc\Rename v2.0\Rename v2.0\bin\Debug\Rename v2.0.exe ""%1""" /f
  EXIT
  </code></pre>
  
  <p>I can't understan what I've done wrong, but if I open a command prompt and run it from there, it runs once.</p>
  
  <p>Any help would be gratly appreciated!</p>
  
  <p>Thanks</p>