Menu

#577 zip file and print to stdout will occure "error code 9" on windows 10

Zip
open
GnuWin
None
9
2020-05-13
2020-05-13
No

Hi, I used zip commnad to zip file and print to stdout, but I got an error zip error: Interrupted (aborting).

D:\
|-- my-folder1\
      |-- sub-folder-1\

I want to zip the D:\my-folder1\sub-folder-1, and redirect stdout to D:\output.txt, below is my command
D:\my-folder1> zip -r -q - . > ..\output.txt

Then an error happend, zip error: Interrupted (aborting).

The error code : 9 (Zip was interrupted by user (or superuser) action)

My zip version is 3.0

I downloaded the Binary and dependencies from here http://gnuwin32.sourceforge.net/packages/zip.htm

By the way, I can zip and print stdout successfully on Linux by using same command.

Discussion

MongoDB Logo MongoDB