[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[注册表类] 注册表转bat后怎么把路径改为当前路径?

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WinRAR.exe]
@="E:\\PROGRA~1\\WinRAR\\WinRAR.exe"
"Path"="E:\\PROGRA~1\\WinRAR"
[HKEY_CLASSES_ROOT\CLSID\{B41DB860-64E4-11D2-9906-E49FADC173CA}]
@="WinRAR"
[HKEY_CLASSES_ROOT\CLSID\{B41DB860-64E4-11D2-9906-E49FADC173CA}\InProcServer32]
@="E:\\PROGRA~1\\WinRAR\\rarext.dll"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT\WinRAR]
@="RAR 压缩文件"
[HKEY_CLASSES_ROOT\WinRAR\DefaultIcon]
@="E:\\PROGRA~1\\WinRAR\\WinRAR.exe,0"
[HKEY_CLASSES_ROOT\WinRAR\shell]
[HKEY_CLASSES_ROOT\WinRAR\shell\open\command]
@="\"E:\\PROGRA~1\\WinRAR\\WinRAR.exe\" \"%1\""
[HKEY_CLASSES_ROOT\WinRAR\shellex]
[HKEY_CLASSES_ROOT\WinRAR\shellex\ContextMenuHandlers\{B41DB860-64E4-11D2-9906-E49FADC173CA}]
@=""
[HKEY_CLASSES_ROOT\WinRAR\shellex\ContextMenuHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}]
@=""
[HKEY_CLASSES_ROOT\WinRAR\shellex\DropHandler]
@="{B41DB860-64E4-11D2-9906-E49FADC173CA}"
[HKEY_CLASSES_ROOT\WinRAR\shellex\PropertySheetHandlers]
[HKEY_CLASSES_ROOT\WinRAR\shellex\PropertySheetHandlers\{B41DB860-64E4-11D2-9906-E49FADC173CA}]
@=""
[HKEY_CLASSES_ROOT\WinRAR\shellex\PropertySheetHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}]
@=""
[HKEY_CLASSES_ROOT\WinRAR.REV]
@="RAR 恢复卷"
[HKEY_CLASSES_ROOT\WinRAR.REV\DefaultIcon]
@="E:\\PROGRA~1\\WinRAR\\WinRAR.exe,1"
[HKEY_CLASSES_ROOT\WinRAR.REV\shell]
[HKEY_CLASSES_ROOT\WinRAR.REV\shell\open\command]
@="\"E:\\PROGRA~1\\WinRAR\\WinRAR.exe\" \"%1\""
[HKEY_CLASSES_ROOT\WinRAR.ZIP]
@="ZIP 压缩文件"
[HKEY_CLASSES_ROOT\WinRAR.ZIP\DefaultIcon]
@="E:\\PROGRA~1\\WinRAR\\WinRAR.exe,0"
[HKEY_CLASSES_ROOT\WinRAR.ZIP\shell]
[HKEY_CLASSES_ROOT\WinRAR.ZIP\shell\open\command]
@="\"E:\\PROGRA~1\\WinRAR\\WinRAR.exe\" \"%1\""
[HKEY_CLASSES_ROOT\WinRAR.ZIP\shellex]
[HKEY_CLASSES_ROOT\WinRAR.ZIP\shellex\ContextMenuHandlers\{B41DB860-64E4-11D2-9906-E49FADC173CA}]
@=""
[HKEY_CLASSES_ROOT\WinRAR.ZIP\shellex\ContextMenuHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}]
@=""
[HKEY_CLASSES_ROOT\WinRAR.ZIP\shellex\DropHandler]
@="{B41DB860-64E4-11D2-9906-E49FADC173CA}"
[HKEY_CLASSES_ROOT\WinRAR.ZIP\shellex\PropertySheetHandlers]
[HKEY_CLASSES_ROOT\WinRAR.ZIP\shellex\PropertySheetHandlers\{B41DB860-64E4-11D2-9906-E49FADC173CA}]
@=""
[HKEY_CLASSES_ROOT\WinRAR.ZIP\shellex\PropertySheetHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}]
@=""
[HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{B41DB860-8EE4-11D2-9906-E49FADC173CA}]
@="WinRAR"
[HKEY_CLASSES_ROOT\WOW6432Node\CLSID\{B41DB860-8EE4-11D2-9906-E49FADC173CA}\InProcServer32]
@="E:\\PROGRA~1\\WinRAR\\rarext32.dll"
"ThreadingModel"="Apartment"
[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\WinRAR]
@="{B41DB860-64E4-11D2-9906-E49FADC173CA}"
[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\WinRAR32]
@="{B41DB860-8EE4-11D2-9906-E49FADC173CA}"
[HKEY_CLASSES_ROOT\Drive\ShellEx\DragDropHandlers]
[HKEY_CLASSES_ROOT\Drive\ShellEx\DragDropHandlers\WinRAR]
@="{B41DB860-64E4-11D2-9906-E49FADC173CA}"
[HKEY_CLASSES_ROOT\Drive\ShellEx\DragDropHandlers\WinRAR32]
@="{B41DB860-8EE4-11D2-9906-E49FADC173CA}"
[HKEY_CLASSES_ROOT\exefile\shellex\PropertySheetHandlers]
[HKEY_CLASSES_ROOT\exefile\shellex\PropertySheetHandlers\{B41DB860-64E4-11D2-9906-E49FADC173CA}]
@=""
[HKEY_CLASSES_ROOT\exefile\shellex\PropertySheetHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}]
@=""
[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\WinRAR]
@="{B41DB860-64E4-11D2-9906-E49FADC173CA}"
[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\WinRAR32]
@="{B41DB860-8EE4-11D2-9906-E49FADC173CA}"
[HKEY_CLASSES_ROOT\Folder\shellex\DragDropHandlers]

[HKEY_CLASSES_ROOT\Folder\shellex\DragDropHandlers\WinRAR]
@="{B41DB860-64E4-11D2-9906-E49FADC173CA}"
[HKEY_CLASSES_ROOT\Folder\shellex\DragDropHandlers\WinRAR32]
@="{B41DB860-8EE4-11D2-9906-E49FADC173CA}"
[HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications]
"WinRAR"="Software\\WinRAR\\Capabilities"
;格式
[HKEY_CLASSES_ROOT\.7z]
@="WinRAR"
[HKEY_CLASSES_ROOT\.cab]
@="WinRAR"
[HKEY_CLASSES_ROOT\.jar]
@="WinRAR"
[HKEY_CLASSES_ROOT\.rar]
@="WinRAR"
[HKEY_CLASSES_ROOT\.tar]
@="WinRAR"
[HKEY_CLASSES_ROOT\.zip]
@="WinRAR.ZIP"
[HKEY_CLASSES_ROOT\.r00]
@="WinRAR"
[HKEY_CURRENT_USER\Software\WinRAR\Setup\.7z]
"Set"=dword:00000001
"Exist"=dword:00000000
"Type"=""
"Content"=""
"ShellNew"=""
[HKEY_CURRENT_USER\Software\WinRAR\Setup\.cab]
"Set"=dword:00000001
"Exist"=dword:00000001
"Type"="CABFolder"
"Content"=""
"ShellNew"=""
[HKEY_CURRENT_USER\Software\WinRAR\Setup\.jar]
"Set"=dword:00000001
"Exist"=dword:00000000
"Type"=""
"Content"=""
"ShellNew"=""
[HKEY_CURRENT_USER\Software\WinRAR\Setup\.rar]
"Set"=dword:00000001
"Exist"=dword:00000000
"Type"=""
"Content"=""
[HKEY_CURRENT_USER\Software\WinRAR\Setup\.tar]
"Set"=dword:00000001
"Exist"=dword:00000001
"Type"=""
"Content"="application/x-tar"
"ShellNew"=""
[HKEY_CURRENT_USER\Software\WinRAR\Setup\.zip]
"Set"=dword:00000001
"Exist"=dword:00000001
"Type"="CompressedFolder"
"Content"="application/x-zip-compressed"
"ShellNew"=""
;设置选项 是(00000001)否(00000000)
[HKEY_CURRENT_USER\Software\WinRAR\Setup]
"MenuIcons"=dword:00000001 ;右键显示图标
"CascadedMenu"=dword:00000001 ;层叠右键菜单
[HKEY_CURRENT_USER\Software\WinRAR\Setup\Links]
"Desktop"=dword:00000000 ;在桌面创建winrar快捷方式
"StartMenu"=dword:00000000 ;把winrar添加到开始菜单
"Programs"=dword:00000000 ;创建winrar程序组
;是(0x10001,01,00,00,00)否(0x10001,00,00,00,00)
[HKEY_CURRENT_USER\Software\WinRAR\Setup\MenuItems]
"ExtrTo"=dword:00000001 ;解压文件到...
"ExtrHere"=dword:00000001 ;解压到当前文件夹
"Extr"=dword:00000001 ;解压到文件名
"ExtrSep"=dword:00000001 ;解压每个压缩文件到单独的文件夹
"OpenSFX"=dword:00000001 ;使用WinRAR打开(自解压文件)
"OpenArc"=dword:00000001 ;使用WinRAR打开(普通文件)
"AddTo"=dword:00000001 ;添加到压缩文件...
"AddArc"=dword:00000001 ;添加到压缩文件名称
"EmailArc"=dword:00000000 ;添加到压缩文件名称并发送电子邮件
"EmailOpt"=dword:00000000 ;压缩并发送电子邮件
"Test"=dword:00000000 ;测试压缩文件
"Convert"=dword:00000000 ;转换压缩文件...
"SFXLocal"=dword:00000001
"SFXNetwork"=dword:00000001
"SFXOther"=dword:00000001
"DragAdd"=dword:00000001 ;右键拖放文件显示压缩菜单
"DragExtr"=dword:00000001 ;右键拖放压缩文件显示解压菜单



这是winrar安装好后导出的注册表,需要转为bat后更改路径为主程序winrar.exe所在的路径,


曾经保存过一个相关的bat,里面有获取当前路径并赋值给对应注册表路径的代码,但有些部分看不懂,无法修改应用
希望有大佬能注释下
  1. @echo off
  2. set "MPC-Be=%~dp0mpc-be"
  3. set "MPC-BeReg=%MPC-BE:\=\\%"
  4. if "%1"=="" (
  5.     call :Main
  6. ) >nul 2>nul
  7. exit /b
  8. ::以管理员身份运行
  9. :Main
  10.     title 文件关联
  11.     fltmc >nul || mshta vbscript:CreateObject("Shell.Application").ShellExecute("%~dpnx0","%*",,"runas",1)(window.close) && exit /b
  12. ::执行创建注册表关联项
  13. :Install
  14.     (
  15.         echo Windows Registry Editor Version 5.00
  16.         call :RegAssoc mp4  MPC-BE 59 mpciconlib
  17.     ) >"%Temp%\Install.reg"
  18.     reg import "%Temp%\Install.reg"
  19.     del /f "%Temp%\Install.reg"
  20. goto :eof
  21. ::关联相关文件类型
  22. :RegAssoc :: <%1=Ext> <%2=ExeName> <%3=IconIndex图标编号> <%4=图标文件名>
  23.     echo [HKEY_CLASSES_ROOT\MPC-BE.%1\DefaultIcon]
  24.     echo @="\"%MPC-BeReg%\\%4.dll\",%3"
  25.     echo [HKEY_CLASSES_ROOT\MPC-BE.%1\Shell\Open\Command]
  26.     echo @="\"%MPC-BEReg%\\%2.exe\" \"%%1\""
  27.     echo [HKEY_CLASSES_ROOT\.%1]
  28.     echo @="MPC-BE.%1"
  29. goto :eof
  30. ::echo @="\"%MPC-BeReg%\\%4.dll\",%3"  本句意为图标在以%4为名称的.dll文件内
复制代码

回复 1# 工具人


    第几行看不懂?我试试能否说明白
我帮忙写的代码不需要付钱。如果一定要给,请在微信群或QQ群发给大家吧。
【微信公众号、微信群、QQ群】http://bbs.bathome.net/thread-3473-1-1.html
【支持批处理之家,加入VIP会员!】http://bbs.bathome.net/thread-67716-1-1.html

TOP

回复 2# Batcher

set "MPC-Be=%~dp0mpc-be"
set "MPC-BeReg=%MPC-BE:\=\\%"
这两行分别赋值给哪里了
第一行知道是获取路径,第二行不知道在干什么

TOP

回复 3# 工具人


把1个\替换成2个\
例如替换之前是 C:\Test\File
例如替换之后是 C:\\Test\\File
我帮忙写的代码不需要付钱。如果一定要给,请在微信群或QQ群发给大家吧。
【微信公众号、微信群、QQ群】http://bbs.bathome.net/thread-3473-1-1.html
【支持批处理之家,加入VIP会员!】http://bbs.bathome.net/thread-67716-1-1.html

TOP

终于找到一个做好的,对比着改了一些
@echo off

fltmc >nul || mshta vbscript:CreateObject("Shell.Application").ShellExecute("%~dpnx0","%*",,"runas",1)(window.close) && exit /b

PUSHD %~dp0
set TP3=%CD%


reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WinRAR.exe" /f /ve /t REG_SZ /d "%TP3%\WinRAR.exe"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\WinRAR.exe" /f /v "Path" /t REG_SZ /d "%TP3%"
reg add "HKCR\CLSID\{B41DB860-64E4-11D2-9906-E49FADC173CA}" /f /ve /t REG_SZ /d "WinRAR"
reg add "HKCR\CLSID\{B41DB860-64E4-11D2-9906-E49FADC173CA}\InProcServer32" /f /ve /t REG_SZ /d "%TP3%\rarext.dll"
reg add "HKCR\CLSID\{B41DB860-64E4-11D2-9906-E49FADC173CA}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
reg add "HKCR\WinRAR" /f /ve /t REG_SZ /d "RAR 压缩文件"
reg add "HKCR\WinRAR\DefaultIcon" /f /ve /t REG_SZ /d "%TP3%\WinRAR.exe,0"
reg add "HKCR\WinRAR\shell\open\command" /f /ve /t REG_SZ /d "\"%TP3%\WinRAR.exe\" \"%%1\""
reg add "HKCR\WinRAR\shellex\ContextMenuHandlers\{B41DB860-64E4-11D2-9906-E49FADC173CA}" /f /ve /t REG_SZ /d ""
reg add "HKCR\WinRAR\shellex\ContextMenuHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}" /f /ve /t REG_SZ /d ""
reg add "HKCR\WinRAR\shellex\DropHandler" /f /ve /t REG_SZ /d "{B41DB860-64E4-11D2-9906-E49FADC173CA}"
reg add "HKCR\WinRAR\shellex\PropertySheetHandlers\{B41DB860-64E4-11D2-9906-E49FADC173CA}" /f /ve /t REG_SZ /d ""
reg add "HKCR\WinRAR\shellex\PropertySheetHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}" /f /ve /t REG_SZ /d ""
reg add "HKCR\WinRAR.REV" /f /ve /t REG_SZ /d "RAR 恢复卷"
reg add "HKCR\WinRAR.REV\DefaultIcon" /f /ve /t REG_SZ /d "%TP3%\WinRAR.exe,1"
reg add "HKCR\WinRAR.REV\shell\open\command" /f /ve /t REG_SZ /d "\"%TP3%\WinRAR.exe\" \"%%1\""
reg add "HKCR\WinRAR.ZIP" /f /ve /t REG_SZ /d "ZIP 压缩文件"
reg add "HKCR\WinRAR.ZIP\DefaultIcon" /f /ve /t REG_SZ /d "%TP3%\WinRAR.exe,0"
reg add "HKCR\WinRAR.ZIP\shell\open\command" /f /ve /t REG_SZ /d "\"%TP3%\WinRAR.exe\" \"%%1\""
reg add "HKCR\WinRAR.ZIP\shellex\ContextMenuHandlers\{B41DB860-64E4-11D2-9906-E49FADC173CA}" /f /ve /t REG_SZ /d ""
reg add "HKCR\WinRAR.ZIP\shellex\ContextMenuHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}" /f /ve /t REG_SZ /d ""
reg add "HKCR\WinRAR.ZIP\shellex\DropHandler" /f /ve /t REG_SZ /d "{B41DB860-64E4-11D2-9906-E49FADC173CA}"
reg add "HKCR\WinRAR.ZIP\shellex\PropertySheetHandlers\{B41DB860-64E4-11D2-9906-E49FADC173CA}" /f /ve /t REG_SZ /d ""
reg add "HKCR\WinRAR.ZIP\shellex\PropertySheetHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}" /f /ve /t REG_SZ /d ""
reg add "HKCR\WOW6432Node\CLSID\{B41DB860-8EE4-11D2-9906-E49FADC173CA}" /f /ve /t REG_SZ /d "WinRAR"
reg add "HKCR\WOW6432Node\CLSID\{B41DB860-8EE4-11D2-9906-E49FADC173CA}\InProcServer32" /f /ve /t REG_SZ /d "%TP3%\rarext32.dll"
reg add "HKCR\WOW6432Node\CLSID\{B41DB860-8EE4-11D2-9906-E49FADC173CA}\InProcServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
reg add "HKCR\*\shellex\ContextMenuHandlers\WinRAR" /f /ve /t REG_SZ /d "{B41DB860-64E4-11D2-9906-E49FADC173CA}"
reg add "HKCR\*\shellex\ContextMenuHandlers\WinRAR32" /f /ve /t REG_SZ /d "{B41DB860-8EE4-11D2-9906-E49FADC173CA}"
reg add "HKCR\Drive\ShellEx\DragDropHandlers\WinRAR" /f /ve /t REG_SZ /d "{B41DB860-64E4-11D2-9906-E49FADC173CA}"
reg add "HKCR\Drive\ShellEx\DragDropHandlers\WinRAR32" /f /ve /t REG_SZ /d "{B41DB860-8EE4-11D2-9906-E49FADC173CA}"
reg add "HKCR\exefile\shellex\PropertySheetHandlers\{B41DB860-64E4-11D2-9906-E49FADC173CA}" /f /ve /t REG_SZ /d ""
reg add "HKCR\exefile\shellex\PropertySheetHandlers\{B41DB860-8EE4-11D2-9906-E49FADC173CA}" /f /ve /t REG_SZ /d ""
reg add "HKCR\Folder\shellex\ContextMenuHandlers\WinRAR" /f /ve /t REG_SZ /d "{B41DB860-64E4-11D2-9906-E49FADC173CA}"
reg add "HKCR\Folder\shellex\ContextMenuHandlers\WinRAR32" /f /ve /t REG_SZ /d "{B41DB860-8EE4-11D2-9906-E49FADC173CA}"
reg add "HKCR\Folder\shellex\DragDropHandlers\WinRAR" /f /ve /t REG_SZ /d "{B41DB860-64E4-11D2-9906-E49FADC173CA}"
reg add "HKCR\Folder\shellex\DragDropHandlers\WinRAR32" /f /ve /t REG_SZ /d "{B41DB860-8EE4-11D2-9906-E49FADC173CA}"
reg add "HKLM\SOFTWARE\RegisteredApplications" /f /v "WinRAR" /t REG_SZ /d "Software\WinRAR\Capabilities"
reg add "HKCR\.7z" /f /ve /t REG_SZ /d "WinRAR"
reg add "HKCR\.cab" /f /ve /t REG_SZ /d "WinRAR"
reg add "HKCR\.jar" /f /ve /t REG_SZ /d "WinRAR"
reg add "HKCR\.rar" /f /ve /t REG_SZ /d "WinRAR"
reg add "HKCR\.tar" /f /ve /t REG_SZ /d "WinRAR"
reg add "HKCR\.zip" /f /ve /t REG_SZ /d "WinRAR.ZIP"
reg add "HKCR\.r00" /f /ve /t REG_SZ /d "WinRAR"
reg add "HKCU\Software\WinRAR\Setup\.7z" /f /v "Set" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\.7z" /f /v "Exist" /t REG_DWORD /d 0
reg add "HKCU\Software\WinRAR\Setup\.7z" /f /v "Type" /t REG_SZ /d ""
reg add "HKCU\Software\WinRAR\Setup\.7z" /f /v "Content" /t REG_SZ /d ""
reg add "HKCU\Software\WinRAR\Setup\.7z" /f /v "ShellNew" /t REG_SZ /d ""
reg add "HKCU\Software\WinRAR\Setup\.cab" /f /v "Set" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\.cab" /f /v "Exist" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\.cab" /f /v "Type" /t REG_SZ /d "CABFolder"
reg add "HKCU\Software\WinRAR\Setup\.cab" /f /v "Content" /t REG_SZ /d ""
reg add "HKCU\Software\WinRAR\Setup\.cab" /f /v "ShellNew" /t REG_SZ /d ""
reg add "HKCU\Software\WinRAR\Setup\.jar" /f /v "Set" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\.jar" /f /v "Exist" /t REG_DWORD /d 0
reg add "HKCU\Software\WinRAR\Setup\.jar" /f /v "Type" /t REG_SZ /d ""
reg add "HKCU\Software\WinRAR\Setup\.jar" /f /v "Content" /t REG_SZ /d ""
reg add "HKCU\Software\WinRAR\Setup\.jar" /f /v "ShellNew" /t REG_SZ /d ""
reg add "HKCU\Software\WinRAR\Setup\.rar" /f /v "Set" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\.rar" /f /v "Exist" /t REG_DWORD /d 0
reg add "HKCU\Software\WinRAR\Setup\.rar" /f /v "Type" /t REG_SZ /d ""
reg add "HKCU\Software\WinRAR\Setup\.rar" /f /v "Content" /t REG_SZ /d ""
reg add "HKCU\Software\WinRAR\Setup\.tar" /f /v "Set" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\.tar" /f /v "Exist" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\.tar" /f /v "Type" /t REG_SZ /d ""
reg add "HKCU\Software\WinRAR\Setup\.tar" /f /v "Content" /t REG_SZ /d "application/x-tar"
reg add "HKCU\Software\WinRAR\Setup\.tar" /f /v "ShellNew" /t REG_SZ /d ""
reg add "HKCU\Software\WinRAR\Setup\.zip" /f /v "Set" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\.zip" /f /v "Exist" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\.zip" /f /v "Type" /t REG_SZ /d "CompressedFolder"
reg add "HKCU\Software\WinRAR\Setup\.zip" /f /v "Content" /t REG_SZ /d "application/x-zip-compressed"
reg add "HKCU\Software\WinRAR\Setup\.zip" /f /v "ShellNew" /t REG_SZ /d ""
reg add "HKCU\Software\WinRAR\Setup" /f /v "MenuIcons" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup" /f /v "CascadedMenu" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\Links" /f /v "Desktop" /t REG_DWORD /d 0
reg add "HKCU\Software\WinRAR\Setup\Links" /f /v "StartMenu" /t REG_DWORD /d 0
reg add "HKCU\Software\WinRAR\Setup\Links" /f /v "Programs" /t REG_DWORD /d 0
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "ExtrTo" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "ExtrHere" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "Extr" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "ExtrSep" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "OpenSFX" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "OpenArc" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "AddTo" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "AddArc" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "EmailArc" /t REG_DWORD /d 0
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "EmailOpt" /t REG_DWORD /d 0
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "Test" /t REG_DWORD /d 0
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "Convert" /t REG_DWORD /d 0
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "SFXLocal" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "SFXNetwork" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "SFXOther" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "DragAdd" /t REG_DWORD /d 1
reg add "HKCU\Software\WinRAR\Setup\MenuItems" /f /v "DragExtr" /t REG_DWORD /d 1

exit

TOP

返回列表