@ECHO OFF If exist "%Temp%~import.reg" ( Attrib -R -S -H "%Temp%~import.reg" del /F /Q "%Temp%~import.reg" If exist "%Temp%~import.reg" ( Echo Could not delete file "%Temp%~import.reg" Pause ) ) @echo on set "tpath=%~dp0U-Tea(V3)cher.art.exe" set "tpath=%tpath:=\%" echo %tpath% @echo off > "%Temp%~import.reg" ECHO Windows Registry Editor Version 5.00 >> "%Temp%~import.reg" ECHO >> "%Temp%~import.reg" ECHO [HKEY_CLASSES_ROOTU.URL] >> "%Temp%~import.reg" ECHO @=""URL:U.URL Protocol"" >> "%Temp%~import.reg" ECHO "URL Protocol"=""%tpath%"" >> "%Temp%~import.reg" ECHO >> "%Temp%~import.reg" ECHO [HKEY_CLASSES_ROOTUClass.URLDefaultIcon] >> "%Temp%~import.reg" ECHO @=""%tpath%"" >> "%Temp%~import.reg" ECHO >> "%Temp%~import.reg" ECHO [HKEY_CLASSES_ROOTU.URLshell] >> "%Temp%~import.reg" ECHO >> "%Temp%~import.reg" ECHO [HKEY_CLASSES_ROOTU.URLshellopen] >> "%Temp%~import.reg" ECHO >> "%Temp%~import.reg" ECHO [HKEY_CLASSES_ROOTU.URLshellopencommand] >> "%Temp%~import.reg" ECHO @=""%tpath%" "%%1"" START /WAIT REGEDIT /S "%Temp%~import.reg" DEL "%Temp%~import.reg"