@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_ROOT\U.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_ROOT\UClass.URL\DefaultIcon] >> "%Temp%\~import.reg" ECHO @="\"%tpath%\"" >> "%Temp%\~import.reg" ECHO >> "%Temp%\~import.reg" ECHO [HKEY_CLASSES_ROOT\U.URL\shell] >> "%Temp%\~import.reg" ECHO >> "%Temp%\~import.reg" ECHO [HKEY_CLASSES_ROOT\U.URL\shell\open] >> "%Temp%\~import.reg" ECHO >> "%Temp%\~import.reg" ECHO [HKEY_CLASSES_ROOT\U.URL\shell\open\command] >> "%Temp%\~import.reg" ECHO @="\"%tpath%\" \"%%1\"" START /WAIT REGEDIT /S "%Temp%\~import.reg" DEL "%Temp%\~import.reg"
时间: 2024-11-17 13:09:22