1. Windows Registry Editor Version 5.00
  2.  
  3. [HKEY_CLASSES_ROOT\.batscript]
  4. @="bat_script"
  5.  
  6. [HKEY_CLASSES_ROOT\bat_script\shell\open\command]
  7. @="cmd /q /c \"copy %1 %1.bat & cmd /c %1.bat & del %1.bat\""