著名的壓縮軟件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
這樣就大功告成了。
注:更多精彩教程請關注三聯電腦教程欄目,三聯電腦辦公群:189034526歡迎你的加入