首页 > 其他 > 详细

Rar安装包

时间:2017-03-15 20:32:01      阅读:309      评论:0      收藏:0      [点我收藏+]
技术分享
@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"
View Code

 

Rar安装包

原文:http://www.cnblogs.com/shenchao/p/6556054.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!