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