Windows – ‘zip’ is not recognized as an internal or external command, operable program or batch file

command linewindowszip

I am trying the zip functionality on the windows host through command prompt.

When I run the command:

zip -r folder.zip folder

It returns the error message:

'zip' is not recognized as an internal or external command, operable program or batch file

I checked with environment variables also in there path also included like
%SystemRoot%\system32

How can I resolve this?

Best Answer

Windows doesn't have a command line Zip program, only a default windows explorer one. You will need to download a command line archiving program.

Try 7zip or WinRAR.