3

zip is not recognized as an internal or external command

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

'zip` cmd?

Elad Benda
  • 32,996
  • 80
  • 259
  • 444
  • Have you seen this? http://stackoverflow.com/questions/940582/how-do-i-zip-a-file-in-c-using-no-3rd-party-apis – Patrik Svensson Dec 05 '12 at 15:41
  • 1
    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. – AlG Dec 05 '12 at 15:44
  • 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? http://serverfault.com/questions/39071/does-windows-have-a-built-in-zip-command-for-the-command-line – Patrik Svensson Dec 05 '12 at 15:47
  • 7zip uses gzip not zip if you are specifically wanting zip – Josh Graham May 05 '21 at 01:20

3 Answers3

1

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

Oscar
  • 13,056
  • 8
  • 43
  • 69
  • 1
    where does Zip and rar usually inatlled? – Elad Benda Dec 05 '12 at 18:59
  • 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 path – Oscar Dec 06 '12 at 19:37
0

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.

Xavi
  • 49
  • 6
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"

Vidya Sagar H J
  • 101
  • 1
  • 3