Zip/unzip my directory on windows 7 cmd
10,675
Use the -r
option like so:
zip -r foo.zip foo
This will tell zip to recurse down the directory foo
.
Related videos on Youtube
![user](https://i.stack.imgur.com/XWsKp.png?s=256&g=1)
Author by
user
Updated on September 18, 2022Comments
-
user almost 2 years
I want to zip a directory containing many types of files and many sub-directories in it. I tried:
compact /c file
But I did not see anything. Next I found about zip/unzip command and tried:
zip file.zip file
It worked. But, there were sub-directories which have contents (in the input folder before zipping it) and now, in the zipped file, in that sub-directory, there is no content. It means during compression it did not store the contents of sub-directory. What DOS command (only) can get me out of my problem.
-
Admin almost 9 years@stefan-palleta: for unzipping it... do i just write unzip ?