无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 3515|回复: 11
打印 上一主题 下一主题

如何添加右键添加关联将7Z压缩包解压到指定位置

  [复制链接]
跳转到指定楼层
1#
发表于 2021-1-11 09:10:06 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我知道7ZIP这软件可以手动选择解压释放到指定目录,我的目的是在右键添加一栏,点击这个就可以一步到位将7Z文件解压到我要指定的目录
例如我在任意位置选一个ZP,右键这个关联项直接释放我要的目录
这是软件目录C:\Program Files\7-Zip\  指定释放位置C:\Program Files\123\  

是要写一段批处理代码还是注册表改 求大佬教
2#
发表于 2021-1-11 10:55:58 | 只看该作者
7zG.exe + 7-zip.chm  里有答案...
回复

使用道具 举报

3#
发表于 2021-1-11 11:05:53 | 只看该作者
好问题,同问
回复

使用道具 举报

4#
发表于 2021-1-11 14:11:25 | 只看该作者
加一个reg或cmd文件即可
回复

使用道具 举报

5#
发表于 2021-1-11 14:17:54 | 只看该作者
然后设置文件关联

EXEC regedit /s "%ProgramFiles%\7-Zip\7z.reg"

点评

能否具体点呢 大佬  详情 回复 发表于 2021-1-11 14:51
回复

使用道具 举报

6#
 楼主| 发表于 2021-1-11 14:51:40 | 只看该作者
yc2428 发表于 2021-1-11 14:17
然后设置文件关联

EXEC regedit /s "%ProgramFiles%\7-Zip\7z.reg"

能否具体点呢 大佬

点评

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\7-Zip] [HKEY_CURRENT_USER\Software\7-Zip\FM] "ShowDots"=dword:00000001 "ShowRealFileIcons"=dword:00000000 "FullRow"=dword:0000  详情 回复 发表于 2021-1-11 17:25
回复

使用道具 举报

7#
发表于 2021-1-11 16:17:52 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

8#
发表于 2021-1-11 17:25:27 | 只看该作者
a46872963 发表于 2021-1-11 14:51
能否具体点呢 大佬

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\7-Zip]

[HKEY_CURRENT_USER\Software\7-Zip\FM]
"ShowDots"=dword:00000001
"ShowRealFileIcons"=dword:00000000
"FullRow"=dword:00000001
"ShowGrid"=dword:00000000
"SingleClick"=dword:00000000
"AlternativeSelection"=dword:00000000
"ShowSystemMenu"=dword:00000000
"FolderShortcuts"=hex:
"FolderHistory"=hex:00,00
"PanelPath0"=""
"FlatViewArc0"=dword:00000000
"PanelPath1"=""
"FlatViewArc1"=dword:00000000
"ListMode"=dword:00000303
"Position"=hex:38,01,00,00,38,01,00,00,38,07,00,00,85,05,00,00,00,00,00,00
"Panels"=hex:01,00,00,00,00,00,00,00,f6,02,00,00

[HKEY_CURRENT_USER\Software\7-Zip\FM\Columns]
"RootFolder"=hex:01,00,00,00,00,00,00,00,01,00,00,00,04,00,00,00,01,00,00,00,\
  a0,00,00,00

[HKEY_CURRENT_USER\Software\7-Zip\Options]
"ContextMenu"=dword:00000125
"WorkDirType"=dword:00000001
"TempRemovableOnly"=dword:00000000
"WorkDirPath"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.7z]
@="7-Zip.7z"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.arj]
@="7-Zip.arj"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.bz2]
@="7-Zip.bz2"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.bzip2]
@="7-Zip.bzip2"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.cpio]
@="7-Zip.cpio"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.gz]
@="7-Zip.gz"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.gzip]
@="7-Zip.gzip"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.lzh]
@="7-Zip.lzh"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.lzma]
@="7-Zip.lzma"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.rar]
@="7-Zip.rar"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.tar]
@="7-Zip.tar"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.taz]
@="7-Zip.taz"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.tbz]
@="7-Zip.tbz"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.tbz2]
@="7-Zip.tbz2"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.vhd]
@="7-Zip.vhd"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.wim]
@="7-Zip.wim"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.zip]
@="7-Zip.zip"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved]
"{23170F69-40C1-278A-1000-000100020000}"="7-Zip Shell Extension"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\7-Zip]
@="{23170F69-40C1-278A-1000-000100020000}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\7-Zip]
@="{23170F69-40C1-278A-1000-000100020000}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shellex\DragDropHandlers\7-Zip]
@="{23170F69-40C1-278A-1000-000100020000}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Drive\shellex\DragDropHandlers\7-Zip]
@="{23170F69-40C1-278A-1000-000100020000}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shellex\ContextMenuHandlers\7-Zip]
@="{23170F69-40C1-278A-1000-000100020000}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}]
@="7-Zip Shell Extension"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32]
@="X:\\Program Files\\7-Zip\\7-zip.dll"
"ThreadingModel"="Apartment"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.7z]
@="7z Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.7z\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.7z\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.7z\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.7z\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.arj]
@="arj Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.arj\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,4"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.arj\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.arj\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.arj\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.bz2]
@="bz2 Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.bz2\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,2"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.bz2\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.bz2\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.bz2\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.bzip2]
@="bzip2 Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.bzip2\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,2"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.bzip2\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.bzip2\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.bzip2\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.cab]
@="cab Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.cab\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,7"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.cab\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.cab\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.cab\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.cpio]
@="cpio Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.cpio\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,12"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.cpio\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.cpio\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.cpio\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.gz]
@="gz Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.gz\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,14"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.gz\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.gz\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.gz\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.gzip]
@="gzip Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.gzip\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,14"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.gzip\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.gzip\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.gzip\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.lzh]
@="lzh Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.lzh\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,6"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.lzh\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.lzh\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.lzh\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.lzma]
@="lzma Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.lzma\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,16"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.lzma\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.lzma\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.lzma\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.rar]
@="rar Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.rar\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,3"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.rar\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.rar\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.rar\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.rpm]
@="rpm Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.rpm\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,10"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.rpm\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.rpm\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.rpm\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.tar]
@="tar Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.tar\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,13"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.tar\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.tar\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.tar\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.taz]
@="taz Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.taz\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,5"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.taz\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.taz\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.taz\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.tbz]
@="tbz Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.tbz\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,2"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.tbz\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.tbz\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.tbz\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""en\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.tbz2]
@="tbz2 Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.tbz2\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,2"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.tbz2\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.tbz2\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.tbz2\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.vhd]
@="vhd Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.vhd\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,20"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.vhd\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.vhd\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.vhd\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.wim]
@="wim Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.wim\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,20"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.wim\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.wim\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.wim\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.zip]
@="zip Archive"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.zip\DefaultIcon]
@="X:\\Program Files\\7-Zip\\7z.dll,1"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.zip\shell]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.zip\shell\open]
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\7-Zip.zip\shell\open\command]
@="\"X:\\Program Files\\7-Zip\\7zFM.exe\" \"%1\""

点评

EXEC regedit /s "%ProgramFiles%\7-Zip\7z.reg" 1、路径和reg文件名不能错 2、将上面语句加到pecmd.ini中  详情 回复 发表于 2021-1-15 13:06
怎么用 复制弄个记事本里然后改扩展名 导入注册表没用啊 右键压缩包没有菜单  详情 回复 发表于 2021-1-15 08:18
回复

使用道具 举报

9#
 楼主| 发表于 2021-1-15 08:18:45 | 只看该作者
yc2428 发表于 2021-1-11 17:25
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\7-Zip]

怎么用  复制弄个记事本里然后改扩展名 导入注册表没用啊 右键压缩包没有菜单

点评

改路径,这个是PE里的,路径为"X"  详情 回复 发表于 2021-1-15 10:57
回复

使用道具 举报

10#
发表于 2021-1-15 10:57:55 | 只看该作者
a46872963 发表于 2021-1-15 08:18
怎么用  复制弄个记事本里然后改扩展名 导入注册表没用啊 右键压缩包没有菜单

改路径,这个是PE里的,路径为"X"

点评

你这个里面不全改X了么 我直接复制你的不行?  详情 回复 发表于 2021-1-15 11:19
回复

使用道具 举报

11#
 楼主| 发表于 2021-1-15 11:19:12 | 只看该作者
wenbieba 发表于 2021-1-15 10:57
改路径,这个是PE里的,路径为"X"

你这个里面不全改X了么 我直接复制你的不行?
回复

使用道具 举报

12#
发表于 2021-1-15 13:06:49 | 只看该作者
yc2428 发表于 2021-1-11 17:25
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\7-Zip]

EXEC regedit /s "%ProgramFiles%\7-Zip\7z.reg"

1、路径和reg文件名不能错
2、将上面语句加到pecmd.ini中
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-11-24 21:48

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表