I try to unzip a file via CMD.
So I install winzip (and its plugin to cmd), winrar and 7-zip.
But when I try to execute a command via the CMD:
7z e myzip.zip
It gives the next error:
7z is not recognized as an internal or external command
In addition, I added the folder of 7-z to the environment variables (Properties--> advanced --> Environment Variables --> user variable --> choose path, and add C:\Program Files\7-Zip
What can be the reason?
Doing the following in a command prompt works for me, also adding to my User environment variables worked fine as well:
You should see as output (or something similar - as this is on my laptop running Windows 7):
no make sure you type
7z.exe
first i.e.,if this doesnt work download the command line application for winzip and try the same above code replace 7z with the name of the command line application for more info visit the website http://www.compressionarchive.blogspot.in/
In Windows 10 I had to run the batch file as an administrator.
Regarding Phil Street's post:
It may actually be installed in your 32-bit program folder instead of your default x64, if you're running 64-bit OS. Check to see where
7-zip
is installed, and if it is inProgram Files (x86)
then try using this instead:make sure that your path is pointing to .exe file in C:\Program Files\7-Zip (may in bin directory)