Windows 10: Add "Convert to 7z" to .zip context menu

  1.    2 Weeks Ago #1

    Add "Convert to 7z" to .zip context menu


    Convert and replace zip files (requires 7-Zip).



    ConvertTo7z.reg
    Last edited by Labudovi; 2 Weeks Ago at 01:32.
      My ComputerSystem Spec

  2.    2 Weeks Ago #2

    Wow very nice thank you for sharing, like you said i was able to convert zip archive file to 7z archive file.
      My ComputerSystem Spec

  3.    2 Weeks Ago #3

    I'm having problem i have tested your registry file within Windows 10 installed VM and it worked but for some reason registry file does not work for me at my Windows 10 installed computer.

    I have 7-Zip v18.01 installed on my computer.
      My ComputerSystem Spec

  4.    2 Weeks Ago #4

    FreeBooter said: View Post
    I'm having problem i have tested your registry file within Windows 10 installed VM and it worked but for some reason registry file does not work for me at my Windows 10 installed computer.

    I have 7-Zip v18.01 installed on my computer.
    It only works with 7-Zip x64.

    For x86, open the reg file and replace programfiles with programfiles(x86)
      My ComputerSystem Spec

  5.    2 Weeks Ago #5

    I have 7-Zip x64 i also check the registry values added by your registry file they are added to registry.
      My ComputerSystem Spec

  6.    2 Weeks Ago #6

    Make sure that HKEY_CLASSES_ROOT\.zip refers to 7-Zip.zip
      My ComputerSystem Spec

  7.    2 Weeks Ago #7

    Yes i have make sure HKEY_CLASSES_ROOT\.zip refers to 7-Zip.zip i even configure associated zip wit 7-zip. I have no idea why it has work in VM but not my main computer they have same Windows 10 operating system.
      My ComputerSystem Spec

  8.    2 Weeks Ago #8

    I couldn't get it to work updating HKCU. This did though (updating SystemFileAssociations instead).

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\SystemFileAssociations\.zip\shell\ConvertTo7z]
    @="Convert to 7z"
    
    [HKEY_CLASSES_ROOT\SystemFileAssociations\.zip\shell\ConvertTo7z\command]
    @="cmd /v /c title Convert&cd /d \"!programfiles!\\7-Zip\"&&set \"var=%1\"&&set \"td=!temp!\\convert!random!!random!\"&&set \"tf=!temp!\\convert!random!!random!.7z\"&&7z x \"!var!\" -o\"!td!\" >nul&if !errorlevel! equ 0 ((7z a \"!tf!\" \"!td!\\*\" -t7z -mtm- >nul&&copy /y \"!tf!\" \"!var:~0,-4!.7z\" >nul&&del /f /a \"!var!\")&del /f \"!tf!\"&rmdir /s /q \"!td!\")&if !errorlevel! equ 0 (echo OK&timeout 1 >nul) else (echo Error: !errorlevel!&pause)"
    It is a very neat command.
      My ComputerSystem Spec

  9.    2 Weeks Ago #9

    Wow good news i have fix the issue now context menu have Convert to 7z option.
      My ComputerSystem Spec

  10.    2 Weeks Ago #10

    Make sure associated zip with 7-zip for the user and all users from 7-Zip File Manager.
      My ComputerSystem Spec


 

Related Threads
So I updated to the CU over a week ago, and I noticed an odd change. The "Open command prompt here" option in the shift+right-click context menu has been replaced by "Open Windows Powershell here" instead. Powershell does not work with the apps I...
One of our Win10 laptops has a context menu with "Properties" that uses shortcut key "r". The other uses key "o" which conflicts with "open". I have no idea how it got corrupted. Suggested locations in the registry for context menu doesn't list it....
I just realized today that the "new" context menu has disappeared every in windows 10. And a new item that wasn't there before "cmd" has popped up. See screenshot. 110666 When I press "cmd" I get the following error in the screenshot below. ...
I've just upgraded to Windows 10 and when I use the file explorer, the "delete" and "cut" is missing from the context menu when I press right-click with mouse on the file and folder. Is there anyone that knows how to add these features into the...
Anyone knows why when i remove "Send To" & "Pin To Start" context menu entries from registry, windows automatically creates new one's after restart. Never had such problem in 8, and it's driving me nuts!!!!! Thanks for help!
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 06:45.
Find Us