无忧启动论坛

标题: 如何添加右键添加关联将7Z压缩包解压到指定位置 [打印本页]

作者: a46872963    时间: 2021-1-11 09:10
标题: 如何添加右键添加关联将7Z压缩包解压到指定位置
我知道7ZIP这软件可以手动选择解压释放到指定目录,我的目的是在右键添加一栏,点击这个就可以一步到位将7Z文件解压到我要指定的目录
例如我在任意位置选一个ZP,右键这个关联项直接释放我要的目录
这是软件目录C:\Program Files\7-Zip\  指定释放位置C:\Program Files\123\  

是要写一段批处理代码还是注册表改 求大佬教
作者: junyee    时间: 2021-1-11 10:55
7zG.exe + 7-zip.chm  里有答案...
作者: listen_run    时间: 2021-1-11 11:05
好问题,同问
作者: yc2428    时间: 2021-1-11 14:11
加一个reg或cmd文件即可
作者: yc2428    时间: 2021-1-11 14:17
然后设置文件关联

EXEC regedit /s "%ProgramFiles%\7-Zip\7z.reg"
作者: a46872963    时间: 2021-1-11 14:51
yc2428 发表于 2021-1-11 14:17
然后设置文件关联

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

能否具体点呢 大佬
作者: 嘉秋秋    时间: 2021-1-11 16:17
提示: 作者被禁止或删除 内容自动屏蔽
作者: yc2428    时间: 2021-1-11 17:25
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\""
作者: a46872963    时间: 2021-1-15 08:18
yc2428 发表于 2021-1-11 17:25
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\7-Zip]

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

改路径,这个是PE里的,路径为"X"
作者: a46872963    时间: 2021-1-15 11:19
wenbieba 发表于 2021-1-15 10:57
改路径,这个是PE里的,路径为"X"

你这个里面不全改X了么 我直接复制你的不行?
作者: yc2428    时间: 2021-1-15 13:06
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中




欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) Powered by Discuz! X3.3