how can I run zip through cmd, where it's not found?
Asked Answered
P

6

8

zip is not recognized as an internal or external command

where can I find zip on my machine in order to run

'zip` cmd?

Phonotypy answered 5/12, 2012 at 15:40 Comment(4)
Have you seen this? #941082Baldwin
Did you install 7-zip, Winzip, or some zip you expect to run? Sounds like that error is your zip isn't in your path or is not installed.Darreldarrell
Make sure that you have "zip" installed (nothing built into windows like that). Maybe you can post some code that shows us what you're doing? serverfault.com/questions/39071/…Baldwin
7zip uses gzip not zip if you are specifically wanting zipMisname
A
2

You need to install the aplication. Later, add the folder where is located to your system PATH environment variable.

Abdias answered 5/12, 2012 at 16:5 Comment(2)
where does Zip and rar usually inatlled?Phonotypy
It depends of your OS version, but usually in %PROGRAMFILES/winrar or WinZip. Left click on the program icon, goto properties and you''ll see the program pathAbdias
S
1

I had to run a bat file which had zip command to be executed, I used to get "'zip' is not recognized as an internal or external command, operable program or batch file."

I went to http://stahlworks.com/dev/index.php?tool=zipunzip, downloaded zip.exe and set it in Environment variables, it is working for me now.

Statued answered 18/8, 2020 at 7:31 Comment(2)
I downloaded the zip.exe file but still not working.Carmencita
You have to put zip.exe file's path into enviroment variable path.Statued
F
1
tar -cvzf  Your_deployment_package.zip files.py

Use tar -cvzf in start instead of zip will work for me.

Fasciation answered 18/1, 2023 at 12:0 Comment(2)
Thanks, works for me too. Funny that you can use tar on Windows, but not zip.Backpedal
This command will create a TAR archive file, not a zip file. To create a zip file, add the (undocumented) -a flag. See this StackExchange answer: superuser.com/a/1473257/1066749Amphisbaena
E
0

The below method worked for me.

By default, Windows doesn't support zip command. Instead, install a third party software like 7-zip. If you are using npm, then copy the "7z.exe" to the folder where npm is installed. In my case, npm was installed under "C:\Users\user-name\AppData\Roaming\npm"

Emery answered 31/5, 2021 at 11:2 Comment(0)
R
0

I use 7-Zip as my zip tool, and the name of its file is 7z.exe. Windows expects the name to be zip.exe, not 7z.exe. So, I renamed it to zip.exe and it did the trick. Don't forget to add the renamed file to environment variable path.

Redundant answered 8/10, 2022 at 14:17 Comment(0)
H
0

Firstly, You need to install 7zip. And then, you need to create an Environment variable to the 7zip, for example: "C:\Program Files\7-Zip".

If your command is using the 'zip', so you need to change the name of 7zip application: '7zip.exe' --> 'zip.exe'.

Homolographic answered 16/7 at 7:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.