7-zip fix to “Incorrect command line”

Been getting that irritating error (which shouldn’t exist in the first place if you ask me)? Here’s the quick fix:

Right click on the file you want. (No, we’re not going through the old way of 7-zip > Open archive technique.)

Choose ‘Open with…’

Select ‘Choose default program…’

Look for 7-Zip File Manager. If it’s not in the lists of recommended programs, search for it (click ‘Browse…’. Typically it’s under your C:\Program Files\7-Zip folder. Choose the 7zFM.exe program as default program.

Notice that 7-zip GUI is different from 7-zip File Manager. (Aha!)

Click ‘OK’ and try double-clicking your compressed files.

You’re welcome. 🙂

28 thoughts on “7-zip fix to “Incorrect command line”

  1. I must have tried that 10 times but the time I try it after reading this, it works. Of course.
    Thanks.

  2. Thank you for the fix. Also thanks for the Aha!, reminded me of Alan Partridge, which is always a good thing. 🙂

  3. Thanks for the clear explanation. Why the 7-Zip GUI doesn’t open files directly is beyond me. This problem must happen for every person who Installs 7-Zip for the first time.

  4. Pingback: How To Fix 7zip Command Line Error Codes in Windows

  5. Works for me! One thing, 7-Zip was already set as the default for me, but still not working. I browsed to 7zFM.exe and selected that and it worked. Thanks!

  6. Didn’t work for me. May be because I have 64-bit win 10? I used ShellExView from NirSoft. I found it was pointing to 7zip.dll. I right-clicked and clicked “Open CLSID in regedit” and edit the default entry to point to 7-zFM.exe. This fixed it.

  7. Pingback: Error Incorrect Command Line

  8. Freaking THANK YOU. This is exactly what we need when searching for fixes to rando errors, I am so grateful I did not have to wade through a bunch of dumb forum posts. Worked for me!

Leave a reply to Peter Proude Cancel reply