著名的压缩软件7-Zip是一款GNU/LPGL协议下分发的免费软件,可以说是目前最有希望成为zip、rar之后的下一个主流压缩格式的文件压缩格式了。下面我们就来看看如何把为pe增加7z右键功能,当然方法可能有许多种,下面只介绍其中的一种方法以供参考。
首先把7z.exe、7z.dll、7-zip.dll、7zG.exe四个文件拷贝到system32文件夹下。
然后在REGDOC.CMD(也有可能是别的名字,或者没有)中加入如下句子:
rem 关联7z
reg add "HKU.DEFAULTSoftware7-ZIP" /f /v "Lang" /t REG_SZ /d "zh-cn"
reg add "HKU.DEFAULTSessionInformation" /f /v "ProgramCount" /t REG_DWORD /d 4
reg add "HKU.DEFAULTSoftware7-ZIPCompressionOptions7z" /f /v "Method" /t REG_SZ /d "LZMA"
reg add "HKU.DEFAULTSoftware7-ZIPCompressionOptions7z" /f /v "Level" /t REG_DWORD /d 9
reg add "HKU.DEFAULTSoftware7-ZIPCompressionOptions7z" /f /v "Dictionary" /t REG_DWORD /d 33554432
reg add "HKU.DEFAULTSoftware7-ZIPCompressionOptions7z" /f /v "Order" /t REG_DWORD /d 64
reg add "HKU.DEFAULTSoftware7-ZIPCompressionOptions7z" /f /v "BlockSize" /t REG_DWORD /d 32
reg add "HKU.DEFAULTSoftware7-ZIPCompressionOptions7z" /f /v "NumThreads" /t REG_DWORD /d 1
reg add "HKLMSOFTWAREClasses*shellexContextMenuHandlers7-ZIP" /f /ve /t REG_SZ /d "{23170F69-40C1-278A-1000-000100020000}"
reg add "HKLMSOFTWAREClassesCLSID{23170F69-40C1-278A-1000-000100020000}" /f /ve /t REG_SZ /d "7-Zip Shell Extension"
reg add "HKLMSOFTWAREClassesCLSID{23170F69-40C1-278A-1000-000100020000}InprocServer32" /f /ve /t REG_SZ /d "X:wxpesystem327-zip.dll"
reg add "HKLMSOFTWAREClassesCLSID{23170F69-40C1-278A-1000-000100020000}InprocServer32" /f /v "ThreadingModel" /t REG_SZ /d "Apartment"
reg add "HKLMSOFTWAREClassesDirectoryshellexDragDropHandlers7-ZIP" /f /ve /t REG_SZ /d "{23170F69-40C1-278A-1000-000100020000}"
reg add "HKLMSOFTWAREClassesDirectoryshellexContextMenuHandlers7-ZIP" /f /ve /t REG_SZ /d "{23170F69-40C1-278A-1000-000100020000}"
reg add "HKLMSOFTWAREClassesDriveshellexDragDropHandlers7-ZIP" /f /ve /t REG_SZ /d "{23170F69-40C1-278A-1000-000100020000}"
reg add "HKU.DEFAULTSoftware7-ZIPOptions" /f /v "CascadedMenu" /t REG_DWORD /d 1
reg add "HKU.DEFAULTSoftware7-ZIPOptions" /f /v "ContextMenu" /t REG_DWORD /d 256
reg add "HKU.DEFAULTSoftware7-ZIPOptions" /f /v "WorkDirType" /t REG_DWORD /d 0
reg add "HKU.DEFAULTSoftware7-ZIPOptions" /f /v "WorkDirPath" /t REG_SZ /d ""
reg add "HKU.DEFAULTSoftware7-ZIPOptions" /f /v "TempRemovableOnly" /t REG_DWORD /d 1
reg add "HKLMSOFTWAREMicrosoftCryptographyRNG" /f /v "Seed" /t REG_BINARY /d ae980bee38a3f51bba1e2a2620869cd4140359f701aff4cc6d90c3dacb7a58e26176a8a8d517c1ca0a19aff67e65b7ea2580d530b236cc02f57234b8acc6629bfef9fece90743d5d47134f8a5e15d12b
- 看不过瘾?点击下面链接! 【本站微信公众号:gsjx365,天天有好故事感动你!】