chshrm 发表于 2018-11-29 16:30:12

批处理命令执行7-zip.inf文件

在Windows安装过程中需要用批处理安装7-zip.inf
求大神给个批处理命令安装7-zip.inf

Anson4 发表于 2018-11-29 17:07:00

本帖最后由 Anson4 于 2018-11-29 17:08 编辑

NT6: %Windir%\System32\InfDefaultInstall.exe 7-zip.inf
NT5: %Windir%\System32\Rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 "%Temp%\7-zip.inf"

jssqysb 发表于 2018-11-29 18:23:00

进来看看了啊

chshrm 发表于 2018-11-29 19:26:22

Anson4 发表于 2018-11-29 17:07
NT6: %Windir%\System32\InfDefaultInstall.exe 7-zip.inf
NT5: %Windir%\System32\Rundll32.exe setupapi ...

感谢大神!!!

chshrm 发表于 2018-11-30 11:19:16

chshrm 发表于 2018-11-29 19:26
感谢大神!!!

安装过程卡在那里很久,后来弹出过cmd窗口,啥提示也没有,大师有什么参数加上去吗?

chshrm 发表于 2018-11-30 21:47:00

chshrm 发表于 2018-11-30 11:19
安装过程卡在那里很久,后来弹出过cmd窗口,啥提示也没有,大师有什么参数加上去吗?

已解决,是批处理问题

kingshui 发表于 2018-12-18 12:01:01

想看下7-zip.inf都有些什么内容,是文件关联吗?

chshrm 发表于 2019-2-1 11:25:54

kingshui 发表于 2018-12-18 12:01
想看下7-zip.inf都有些什么内容,是文件关联吗?


Signature="$Windows NT$"


; DelReg=7-zip_DelReg
AddReg=7-zip_AddReg




hklm,"SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved","{23170F69-40C1-278A-1000-000100020000}",,"7-Zip Shell Extension"

hkcr,"*\shellex\ContextMenuHandlers\7-Zip",,,"{23170F69-40C1-278A-1000-000100020000}"

hkcr,"CLSID\{23170F69-40C1-278A-1000-000100020000}",,,"7-Zip Shell Extension"
hkcr,"CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32",,,"%01%\7-zip.dll"
hkcr,"CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32","ThreadingModel",,"Apartment"

hkcr,"Directory\shellex\ContextMenuHandlers\7-Zip",,,"{23170F69-40C1-278A-1000-000100020000}"
hkcr,"Directory\shellex\DragDropHandlers\7-Zip",,,"{23170F69-40C1-278A-1000-000100020000}"
hkcr,"Drive\shellex\DragDropHandlers\7-Zip",,,"{23170F69-40C1-278A-1000-000100020000}"

hkcr,"Wow6432Node\CLSID\{23170F69-40C1-278A-1000-000100020000}",,,"7-Zip Shell Extension"
hkcr,"Wow6432Node\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32",,,"%01%\7-zip32.dll"
hkcr,"Wow6432Node\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32","ThreadingModel",,"Apartment"

hkcr,".001",,,"7-Zip.001"

hkcr,".7z",,,"7-Zip.7z"

hkcr,".arj",,,"7-Zip.arj"

hkcr,".bz2",,,"7-Zip.bz2"

hkcr,".bzip2",,,"7-Zip.bzip2"

hkcr,".cab",,,"7-Zip.cab"

hkcr,".cpio",,,"7-Zip.cpio"

hkcr,".deb",,,"7-Zip.deb"

hkcr,".dmg",,,"7-Zip.dmg"

hkcr,".fat",,,"7-Zip.fat"

hkcr,".gz",,,"7-Zip.gz"

hkcr,".gzip",,,"7-Zip.gzip"

hkcr,".hfs",,,"7-Zip.hfs"

hkcr,".lha",,,"7-Zip.lha"

hkcr,".lzh",,,"7-Zip.lzh"

hkcr,".lzma",,,"7-Zip.lzma"

hkcr,".ntfs",,,"7-Zip.ntfs"

hkcr,".rar",,,"7-Zip.rar"

hkcr,".rpm",,,"7-Zip.rpm"

hkcr,".squashfs",,,"7-Zip.squashfs"

hkcr,".tar",,,"7-Zip.tar"

hkcr,".taz",,,"7-Zip.taz"

hkcr,".tbz",,,"7-Zip.tbz"

hkcr,".tbz2",,,"7-Zip.tbz2"

hkcr,".tgz",,,"7-Zip.tgz"

hkcr,".tpz",,,"7-Zip.tpz"

hkcr,".txz",,,"7-Zip.txz"

hkcr,".xar",,,"7-Zip.xar"

hkcr,".xz",,,"7-Zip.xz"

hkcr,".z",,,"7-Zip.z"

hkcr,".zip",,,"7-Zip.zip"

hkcr,"7-Zip.001",,,"001 Archive"

hkcr,"7-Zip.001\DefaultIcon",,,"%01%\7z.dll,9"

hkcr,"7-Zip.001\shell",,,""

hkcr,"7-Zip.001\shell\open",,,""

hkcr,"7-Zip.001\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.7z",,,"7z Archive"

hkcr,"7-Zip.7z\DefaultIcon",,,"%01%\7z.dll,0"

hkcr,"7-Zip.7z\shell",,,""

hkcr,"7-Zip.7z\shell\open",,,""

hkcr,"7-Zip.7z\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.arj",,,"arj Archive"

hkcr,"7-Zip.arj\DefaultIcon",,,"%01%\7z.dll,4"

hkcr,"7-Zip.arj\shell",,,""

hkcr,"7-Zip.arj\shell\open",,,""

hkcr,"7-Zip.arj\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.bz2",,,"bz2 Archive"

hkcr,"7-Zip.bz2\DefaultIcon",,,"%01%\7z.dll,2"

hkcr,"7-Zip.bz2\shell",,,""

hkcr,"7-Zip.bz2\shell\open",,,""

hkcr,"7-Zip.bz2\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.bzip2",,,"bzip2 Archive"

hkcr,"7-Zip.bzip2\DefaultIcon",,,"%01%\7z.dll,2"

hkcr,"7-Zip.bzip2\shell",,,""

hkcr,"7-Zip.bzip2\shell\open",,,""

hkcr,"7-Zip.bzip2\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.cab",,,"cab Archive"

hkcr,"7-Zip.cab\DefaultIcon",,,"%01%\7z.dll,7"

hkcr,"7-Zip.cab\shell",,,""

hkcr,"7-Zip.cab\shell\open",,,""

hkcr,"7-Zip.cab\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.cpio",,,"cpio Archive"

hkcr,"7-Zip.cpio\DefaultIcon",,,"%01%\7z.dll,12"

hkcr,"7-Zip.cpio\shell",,,""

hkcr,"7-Zip.cpio\shell\open",,,""

hkcr,"7-Zip.cpio\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.deb",,,"deb Archive"

hkcr,"7-Zip.deb\DefaultIcon",,,"%01%\7z.dll,11"

hkcr,"7-Zip.deb\shell",,,""

hkcr,"7-Zip.deb\shell\open",,,""

hkcr,"7-Zip.deb\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.dmg",,,"dmg Archive"

hkcr,"7-Zip.dmg\DefaultIcon",,,"%01%\7z.dll,17"

hkcr,"7-Zip.dmg\shell",,,""

hkcr,"7-Zip.dmg\shell\open",,,""

hkcr,"7-Zip.dmg\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.fat",,,"fat Archive"

hkcr,"7-Zip.fat\DefaultIcon",,,"%01%\7z.dll,21"

hkcr,"7-Zip.fat\shell",,,""

hkcr,"7-Zip.fat\shell\open",,,""

hkcr,"7-Zip.fat\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.gz",,,"gz Archive"

hkcr,"7-Zip.gz\DefaultIcon",,,"%01%\7z.dll,14"

hkcr,"7-Zip.gz\shell",,,""

hkcr,"7-Zip.gz\shell\open",,,""

hkcr,"7-Zip.gz\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.gzip",,,"gzip Archive"

hkcr,"7-Zip.gzip\DefaultIcon",,,"%01%\7z.dll,14"

hkcr,"7-Zip.gzip\shell",,,""

hkcr,"7-Zip.gzip\shell\open",,,""

hkcr,"7-Zip.gzip\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.hfs",,,"hfs Archive"

hkcr,"7-Zip.hfs\DefaultIcon",,,"%01%\7z.dll,18"

hkcr,"7-Zip.hfs\shell",,,""

hkcr,"7-Zip.hfs\shell\open",,,""

hkcr,"7-Zip.hfs\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.lha",,,"lha Archive"

hkcr,"7-Zip.lha\DefaultIcon",,,"%01%\7z.dll,6"

hkcr,"7-Zip.lha\shell",,,""

hkcr,"7-Zip.lha\shell\open",,,""

hkcr,"7-Zip.lha\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.lzh",,,"lzh Archive"

hkcr,"7-Zip.lzh\DefaultIcon",,,"%01%\7z.dll,6"

hkcr,"7-Zip.lzh\shell",,,""

hkcr,"7-Zip.lzh\shell\open",,,""

hkcr,"7-Zip.lzh\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.lzma",,,"lzma Archive"

hkcr,"7-Zip.lzma\DefaultIcon",,,"%01%\7z.dll,16"

hkcr,"7-Zip.lzma\shell",,,""

hkcr,"7-Zip.lzma\shell\open",,,""

hkcr,"7-Zip.lzma\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.ntfs",,,"ntfs Archive"

hkcr,"7-Zip.ntfs\DefaultIcon",,,"%01%\7z.dll,22"

hkcr,"7-Zip.ntfs\shell",,,""

hkcr,"7-Zip.ntfs\shell\open",,,""

hkcr,"7-Zip.ntfs\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.rar",,,"rar Archive"

hkcr,"7-Zip.rar\DefaultIcon",,,"%01%\7z.dll,3"

hkcr,"7-Zip.rar\shell",,,""

hkcr,"7-Zip.rar\shell\open",,,""

hkcr,"7-Zip.rar\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.rpm",,,"rpm Archive"

hkcr,"7-Zip.rpm\DefaultIcon",,,"%01%\7z.dll,10"

hkcr,"7-Zip.rpm\shell",,,""

hkcr,"7-Zip.rpm\shell\open",,,""

hkcr,"7-Zip.rpm\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.squashfs",,,"squashfs Archive"

hkcr,"7-Zip.squashfs\DefaultIcon",,,"%01%\7z.dll,24"

hkcr,"7-Zip.squashfs\shell",,,""

hkcr,"7-Zip.squashfs\shell\open",,,""

hkcr,"7-Zip.squashfs\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.tar",,,"tar Archive"

hkcr,"7-Zip.tar\DefaultIcon",,,"%01%\7z.dll,13"

hkcr,"7-Zip.tar\shell",,,""

hkcr,"7-Zip.tar\shell\open",,,""

hkcr,"7-Zip.tar\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.taz",,,"taz Archive"

hkcr,"7-Zip.taz\DefaultIcon",,,"%01%\7z.dll,5"

hkcr,"7-Zip.taz\shell",,,""

hkcr,"7-Zip.taz\shell\open",,,""

hkcr,"7-Zip.taz\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.tbz",,,"tbz Archive"

hkcr,"7-Zip.tbz\DefaultIcon",,,"%01%\7z.dll,2"

hkcr,"7-Zip.tbz\shell",,,""

hkcr,"7-Zip.tbz\shell\open",,,""

hkcr,"7-Zip.tbz\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.tbz2",,,"tbz2 Archive"

hkcr,"7-Zip.tbz2\DefaultIcon",,,"%01%\7z.dll,2"

hkcr,"7-Zip.tbz2\shell",,,""

hkcr,"7-Zip.tbz2\shell\open",,,""

hkcr,"7-Zip.tbz2\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.tgz",,,"tgz Archive"

hkcr,"7-Zip.tgz\DefaultIcon",,,"%01%\7z.dll,14"

hkcr,"7-Zip.tgz\shell",,,""

hkcr,"7-Zip.tgz\shell\open",,,""

hkcr,"7-Zip.tgz\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.tpz",,,"tpz Archive"

hkcr,"7-Zip.tpz\DefaultIcon",,,"%01%\7z.dll,14"

hkcr,"7-Zip.tpz\shell",,,""

hkcr,"7-Zip.tpz\shell\open",,,""

hkcr,"7-Zip.tpz\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.txz",,,"txz Archive"

hkcr,"7-Zip.txz\DefaultIcon",,,"%01%\7z.dll,23"

hkcr,"7-Zip.txz\shell",,,""

hkcr,"7-Zip.txz\shell\open",,,""

hkcr,"7-Zip.txz\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.xar",,,"xar Archive"

hkcr,"7-Zip.xar\DefaultIcon",,,"%01%\7z.dll,19"

hkcr,"7-Zip.xar\shell",,,""

hkcr,"7-Zip.xar\shell\open",,,""

hkcr,"7-Zip.xar\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.xz",,,"xz Archive"

hkcr,"7-Zip.xz\DefaultIcon",,,"%01%\7z.dll,23"

hkcr,"7-Zip.xz\shell",,,""

hkcr,"7-Zip.xz\shell\open",,,""

hkcr,"7-Zip.xz\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.z",,,"z Archive"

hkcr,"7-Zip.z\DefaultIcon",,,"%01%\7z.dll,5"

hkcr,"7-Zip.z\shell",,,""

hkcr,"7-Zip.z\shell\open",,,""

hkcr,"7-Zip.z\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcr,"7-Zip.zip",,,"zip Archive"

hkcr,"7-Zip.zip\DefaultIcon",,,"%01%\7z.dll,1"

hkcr,"7-Zip.zip\shell",,,""

hkcr,"7-Zip.zip\shell\open",,,""

hkcr,"7-Zip.zip\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\7-Zip","Lang",,"zh-cn"
hkcu,"Software\7-Zip\Options","CascadedMenu",0x10001,01,00,00,00
hkcu,"Software\7-Zip\Options","MenuIcons",0x10001,00,00,00,00
hkcu,"Software\7-Zip\Options","ContextMenu",0x10001,37,13,00,80

hkcu,"Software\Classes\.001",,,"7-Zip.001"

hkcu,"Software\Classes\.7z",,,"7-Zip.7z"

hkcu,"Software\Classes\.arj",,,"7-Zip.arj"

hkcu,"Software\Classes\.bz2",,,"7-Zip.bz2"

hkcu,"Software\Classes\.bzip2",,,"7-Zip.bzip2"

hkcu,"Software\Classes\.cab",,,"7-Zip.cab"

hkcu,"Software\Classes\.cpio",,,"7-Zip.cpio"

hkcu,"Software\Classes\.deb",,,"7-Zip.deb"

hkcu,"Software\Classes\.dmg",,,"7-Zip.dmg"

hkcu,"Software\Classes\.fat",,,"7-Zip.fat"

hkcu,"Software\Classes\.gz",,,"7-Zip.gz"

hkcu,"Software\Classes\.gzip",,,"7-Zip.gzip"

hkcu,"Software\Classes\.hfs",,,"7-Zip.hfs"

hkcu,"Software\Classes\.lha",,,"7-Zip.lha"

hkcu,"Software\Classes\.lzh",,,"7-Zip.lzh"

hkcu,"Software\Classes\.lzma",,,"7-Zip.lzma"

hkcu,"Software\Classes\.ntfs",,,"7-Zip.ntfs"

hkcu,"Software\Classes\.rar",,,"7-Zip.rar"

hkcu,"Software\Classes\.rpm",,,"7-Zip.rpm"

hkcu,"Software\Classes\.squashfs",,,"7-Zip.squashfs"

hkcu,"Software\Classes\.tar",,,"7-Zip.tar"

hkcu,"Software\Classes\.taz",,,"7-Zip.taz"

hkcu,"Software\Classes\.tbz",,,"7-Zip.tbz"

hkcu,"Software\Classes\.tbz2",,,"7-Zip.tbz2"

hkcu,"Software\Classes\.tgz",,,"7-Zip.tgz"

hkcu,"Software\Classes\.tpz",,,"7-Zip.tpz"

hkcu,"Software\Classes\.txz",,,"7-Zip.txz"

hkcu,"Software\Classes\.xar",,,"7-Zip.xar"

hkcu,"Software\Classes\.xz",,,"7-Zip.xz"

hkcu,"Software\Classes\.z",,,"7-Zip.z"

hkcu,"Software\Classes\.zip",,,"7-Zip.zip"

hkcu,"Software\Classes\7-Zip.001",,,"001 Archive"

hkcu,"Software\Classes\7-Zip.001\DefaultIcon",,,"%01%\7z.dll,9"

hkcu,"Software\Classes\7-Zip.001\shell",,,""

hkcu,"Software\Classes\7-Zip.001\shell\open",,,""

hkcu,"Software\Classes\7-Zip.001\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.7z",,,"7z Archive"

hkcu,"Software\Classes\7-Zip.7z\DefaultIcon",,,"%01%\7z.dll,0"

hkcu,"Software\Classes\7-Zip.7z\shell",,,""

hkcu,"Software\Classes\7-Zip.7z\shell\open",,,""

hkcu,"Software\Classes\7-Zip.7z\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.arj",,,"arj Archive"

hkcu,"Software\Classes\7-Zip.arj\DefaultIcon",,,"%01%\7z.dll,4"

hkcu,"Software\Classes\7-Zip.arj\shell",,,""

hkcu,"Software\Classes\7-Zip.arj\shell\open",,,""

hkcu,"Software\Classes\7-Zip.arj\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.bz2",,,"bz2 Archive"

hkcu,"Software\Classes\7-Zip.bz2\DefaultIcon",,,"%01%\7z.dll,2"

hkcu,"Software\Classes\7-Zip.bz2\shell",,,""

hkcu,"Software\Classes\7-Zip.bz2\shell\open",,,""

hkcu,"Software\Classes\7-Zip.bz2\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.bzip2",,,"bzip2 Archive"

hkcu,"Software\Classes\7-Zip.bzip2\DefaultIcon",,,"%01%\7z.dll,2"

hkcu,"Software\Classes\7-Zip.bzip2\shell",,,""

hkcu,"Software\Classes\7-Zip.bzip2\shell\open",,,""

hkcu,"Software\Classes\7-Zip.bzip2\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.cab",,,"cab Archive"

hkcu,"Software\Classes\7-Zip.cab\DefaultIcon",,,"%01%\7z.dll,7"

hkcu,"Software\Classes\7-Zip.cab\shell",,,""

hkcu,"Software\Classes\7-Zip.cab\shell\open",,,""

hkcu,"Software\Classes\7-Zip.cab\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.cpio",,,"cpio Archive"

hkcu,"Software\Classes\7-Zip.cpio\DefaultIcon",,,"%01%\7z.dll,12"

hkcu,"Software\Classes\7-Zip.cpio\shell",,,""

hkcu,"Software\Classes\7-Zip.cpio\shell\open",,,""

hkcu,"Software\Classes\7-Zip.cpio\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.deb",,,"deb Archive"

hkcu,"Software\Classes\7-Zip.deb\DefaultIcon",,,"%01%\7z.dll,11"

hkcu,"Software\Classes\7-Zip.deb\shell",,,""

hkcu,"Software\Classes\7-Zip.deb\shell\open",,,""

hkcu,"Software\Classes\7-Zip.deb\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.dmg",,,"dmg Archive"

hkcu,"Software\Classes\7-Zip.dmg\DefaultIcon",,,"%01%\7z.dll,17"

hkcu,"Software\Classes\7-Zip.dmg\shell",,,""

hkcu,"Software\Classes\7-Zip.dmg\shell\open",,,""

hkcu,"Software\Classes\7-Zip.dmg\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.fat",,,"fat Archive"

hkcu,"Software\Classes\7-Zip.fat\DefaultIcon",,,"%01%\7z.dll,21"

hkcu,"Software\Classes\7-Zip.fat\shell",,,""

hkcu,"Software\Classes\7-Zip.fat\shell\open",,,""

hkcu,"Software\Classes\7-Zip.fat\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.gz",,,"gz Archive"

hkcu,"Software\Classes\7-Zip.gz\DefaultIcon",,,"%01%\7z.dll,14"

hkcu,"Software\Classes\7-Zip.gz\shell",,,""

hkcu,"Software\Classes\7-Zip.gz\shell\open",,,""

hkcu,"Software\Classes\7-Zip.gz\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.gzip",,,"gzip Archive"

hkcu,"Software\Classes\7-Zip.gzip\DefaultIcon",,,"%01%\7z.dll,14"

hkcu,"Software\Classes\7-Zip.gzip\shell",,,""

hkcu,"Software\Classes\7-Zip.gzip\shell\open",,,""

hkcu,"Software\Classes\7-Zip.gzip\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.hfs",,,"hfs Archive"

hkcu,"Software\Classes\7-Zip.hfs\DefaultIcon",,,"%01%\7z.dll,18"

hkcu,"Software\Classes\7-Zip.hfs\shell",,,""

hkcu,"Software\Classes\7-Zip.hfs\shell\open",,,""

hkcu,"Software\Classes\7-Zip.hfs\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.lha",,,"lha Archive"

hkcu,"Software\Classes\7-Zip.lha\DefaultIcon",,,"%01%\7z.dll,6"

hkcu,"Software\Classes\7-Zip.lha\shell",,,""

hkcu,"Software\Classes\7-Zip.lha\shell\open",,,""

hkcu,"Software\Classes\7-Zip.lha\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.lzh",,,"lzh Archive"

hkcu,"Software\Classes\7-Zip.lzh\DefaultIcon",,,"%01%\7z.dll,6"

hkcu,"Software\Classes\7-Zip.lzh\shell",,,""

hkcu,"Software\Classes\7-Zip.lzh\shell\open",,,""

hkcu,"Software\Classes\7-Zip.lzh\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.lzma",,,"lzma Archive"

hkcu,"Software\Classes\7-Zip.lzma\DefaultIcon",,,"%01%\7z.dll,16"

hkcu,"Software\Classes\7-Zip.lzma\shell",,,""

hkcu,"Software\Classes\7-Zip.lzma\shell\open",,,""

hkcu,"Software\Classes\7-Zip.lzma\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.ntfs",,,"ntfs Archive"

hkcu,"Software\Classes\7-Zip.ntfs\DefaultIcon",,,"%01%\7z.dll,22"

hkcu,"Software\Classes\7-Zip.ntfs\shell",,,""

hkcu,"Software\Classes\7-Zip.ntfs\shell\open",,,""

hkcu,"Software\Classes\7-Zip.ntfs\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.rar",,,"rar Archive"

hkcu,"Software\Classes\7-Zip.rar\DefaultIcon",,,"%01%\7z.dll,3"

hkcu,"Software\Classes\7-Zip.rar\shell",,,""

hkcu,"Software\Classes\7-Zip.rar\shell\open",,,""

hkcu,"Software\Classes\7-Zip.rar\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.rpm",,,"rpm Archive"

hkcu,"Software\Classes\7-Zip.rpm\DefaultIcon",,,"%01%\7z.dll,10"

hkcu,"Software\Classes\7-Zip.rpm\shell",,,""

hkcu,"Software\Classes\7-Zip.rpm\shell\open",,,""

hkcu,"Software\Classes\7-Zip.rpm\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.squashfs",,,"squashfs Archive"

hkcu,"Software\Classes\7-Zip.squashfs\DefaultIcon",,,"%01%\7z.dll,24"

hkcu,"Software\Classes\7-Zip.squashfs\shell",,,""

hkcu,"Software\Classes\7-Zip.squashfs\shell\open",,,""

hkcu,"Software\Classes\7-Zip.squashfs\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.tar",,,"tar Archive"

hkcu,"Software\Classes\7-Zip.tar\DefaultIcon",,,"%01%\7z.dll,13"

hkcu,"Software\Classes\7-Zip.tar\shell",,,""

hkcu,"Software\Classes\7-Zip.tar\shell\open",,,""

hkcu,"Software\Classes\7-Zip.tar\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.taz",,,"taz Archive"

hkcu,"Software\Classes\7-Zip.taz\DefaultIcon",,,"%01%\7z.dll,5"

hkcu,"Software\Classes\7-Zip.taz\shell",,,""

hkcu,"Software\Classes\7-Zip.taz\shell\open",,,""

hkcu,"Software\Classes\7-Zip.taz\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.tbz",,,"tbz Archive"

hkcu,"Software\Classes\7-Zip.tbz\DefaultIcon",,,"%01%\7z.dll,2"

hkcu,"Software\Classes\7-Zip.tbz\shell",,,""

hkcu,"Software\Classes\7-Zip.tbz\shell\open",,,""

hkcu,"Software\Classes\7-Zip.tbz\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.tbz2",,,"tbz2 Archive"

hkcu,"Software\Classes\7-Zip.tbz2\DefaultIcon",,,"%01%\7z.dll,2"

hkcu,"Software\Classes\7-Zip.tbz2\shell",,,""

hkcu,"Software\Classes\7-Zip.tbz2\shell\open",,,""

hkcu,"Software\Classes\7-Zip.tbz2\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.tgz",,,"tgz Archive"

hkcu,"Software\Classes\7-Zip.tgz\DefaultIcon",,,"%01%\7z.dll,14"

hkcu,"Software\Classes\7-Zip.tgz\shell",,,""

hkcu,"Software\Classes\7-Zip.tgz\shell\open",,,""

hkcu,"Software\Classes\7-Zip.tgz\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.tpz",,,"tpz Archive"

hkcu,"Software\Classes\7-Zip.tpz\DefaultIcon",,,"%01%\7z.dll,14"

hkcu,"Software\Classes\7-Zip.tpz\shell",,,""

hkcu,"Software\Classes\7-Zip.tpz\shell\open",,,""

hkcu,"Software\Classes\7-Zip.tpz\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.txz",,,"txz Archive"

hkcu,"Software\Classes\7-Zip.txz\DefaultIcon",,,"%01%\7z.dll,23"

hkcu,"Software\Classes\7-Zip.txz\shell",,,""

hkcu,"Software\Classes\7-Zip.txz\shell\open",,,""

hkcu,"Software\Classes\7-Zip.txz\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.xar",,,"xar Archive"

hkcu,"Software\Classes\7-Zip.xar\DefaultIcon",,,"%01%\7z.dll,19"

hkcu,"Software\Classes\7-Zip.xar\shell",,,""

hkcu,"Software\Classes\7-Zip.xar\shell\open",,,""

hkcu,"Software\Classes\7-Zip.xar\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.xz",,,"xz Archive"

hkcu,"Software\Classes\7-Zip.xz\DefaultIcon",,,"%01%\7z.dll,23"

hkcu,"Software\Classes\7-Zip.xz\shell",,,""

hkcu,"Software\Classes\7-Zip.xz\shell\open",,,""

hkcu,"Software\Classes\7-Zip.xz\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.z",,,"z Archive"

hkcu,"Software\Classes\7-Zip.z\DefaultIcon",,,"%01%\7z.dll,5"

hkcu,"Software\Classes\7-Zip.z\shell",,,""

hkcu,"Software\Classes\7-Zip.z\shell\open",,,""

hkcu,"Software\Classes\7-Zip.z\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""

hkcu,"Software\Classes\7-Zip.zip",,,"zip Archive"

hkcu,"Software\Classes\7-Zip.zip\DefaultIcon",,,"%01%\7z.dll,1"

hkcu,"Software\Classes\7-Zip.zip\shell",,,""

hkcu,"Software\Classes\7-Zip.zip\shell\open",,,""

hkcu,"Software\Classes\7-Zip.zip\shell\open\command",,,"""%01%\7zFM.exe"" ""%%1"""


kingshui 发表于 2019-2-4 21:52:09

chshrm 发表于 2019-2-1 11:25

Signature="$Windows NT$"



这招不错。。我现在用的是下面的

@echo off
SetLocal EnableDelayedExpansion
for %%i in (.001_9 .7z_0 .arj_4 .bz2_2 .bzip2_2 .cab_7 .cpio_12 .deb_11 .dmg_17 .fat_21 .gz_14 .gzip_14 .hfs_18 .iso_8 .lha_6 .lzh_6 .lzma_16 .ntfs_22 .rar_3 .rpm_10 .squashfs_24 .swm_15 .tar_13 .taz_5 .tbz_2 .tbz2_2 .tgz_14 .tpz_14 .txz_23 .vhd_20 .wim_15 .xar_19 .xz_23 .z_5 .zip_1) do (
        for /f "tokens=1,2 delims=_" %%a in ("%%i") do (
                assoc %%a=7-Zip%%a
                ftype 7-Zip%%a="%ProgramFiles%\7-Zip\7zFM.exe" "%%1"
                reg add HKCR\7-Zip%%a\DefaultIcon /ve /t REG_SZ /d "%ProgramFiles%\7-Zip\7z.dll,%%b" /f
        )
)
reg add HKCU\Software\7-Zip\Options /v MenuIcons /t REG_DWORD /d 1 /f               
reg add HKLM\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000} /ve /t REG_SZ /d "7-Zip Shell Extension" /f
reg add HKLM\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32 /ve /t REG_SZ /d "%ProgramFiles%\7-Zip\7-zip.dll" /f
reg add HKLM\SOFTWARE\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32 /v ThreadingModel /t REG_SZ /d Apartment /f
for %%i in (Directory Drive Folder) do reg add HKLM\SOFTWARE\Classes\%%i\ShellEx\ContextMenuHandlers\7-Zip /ve /t REG_SZ /d {23170F69-40C1-278A-1000-000100020000} /f
reg add HKLM\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\7-Zip /ve /t REG_SZ /d {23170F69-40C1-278A-1000-000100020000} /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" /v {23170F69-40C1-278A-1000-000100020000} /t REG_SZ /d "7-Zip Shell Extension" /f
reg add HKLM\SOFTWARE\Wow6432Node\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000} /ve /t REG_SZ /d "7-Zip Shell Extension" /f
reg add HKLM\SOFTWARE\Wow6432Node\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32 /ve /t REG_SZ /d "%ProgramFiles%\7-Zip\7-zip32.dll" /f
reg add HKLM\SOFTWARE\Wow6432Node\Classes\CLSID\{23170F69-40C1-278A-1000-000100020000}\InprocServer32 /v ThreadingModel /t REG_SZ /d Apartment /f
reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved" /v {23170F69-40C1-278A-1000-000100020000} /t REG_SZ /d "7-Zip Shell Extension" /f
页: [1]
查看完整版本: 批处理命令执行7-zip.inf文件