locked
How to zip/unzip a folder by builtin tool in cmd RRS feed

  • Question

  • makecab only zip a file to zip file, and I want to zip folder to a file, and unzip the file to a folder used builtin tool in cmd. like manual operation in windows explorer.

    is there builtin tool used in cmd for zip/unzip a folder. thanks.

    • Changed type Zhongjian Tuesday, December 14, 2010 7:39 AM
    • Moved by Miya Yao Thursday, December 16, 2010 2:41 AM the proper queue (From:Windows 7 Networking)
    • Edited by Zhongjian Tuesday, December 21, 2010 1:27 AM update question
    Tuesday, December 14, 2010 2:31 AM

Answers

  • Try the COMPACT command.  Enter compact /? at a command prompt to see the available parameters.
    • Marked as answer by Zhongjian Monday, December 27, 2010 1:46 AM
    Tuesday, December 21, 2010 8:41 PM

All replies

  • Yeah.  Right-click on the folder or file, select Send to and pick Compressed (zipped) folder.  To unzip it, right-click on the zipped file, select Extract All...

    You should have asked this in the User Interface forum though (http://social.technet.microsoft.com/Forums/en/w7itproui/) because it has nothing to do with networking.

    • Proposed as answer by Andre.Ziegler Tuesday, December 14, 2010 3:45 PM
    • Marked as answer by Miya Yao Thursday, December 16, 2010 2:44 AM
    • Unmarked as answer by Zhongjian Tuesday, December 21, 2010 1:27 AM
    Tuesday, December 14, 2010 2:02 PM
  • Thanks. I update my question.  I want get the builtin tool can used in cmd to zip/unzip a folder.
    • Edited by Zhongjian Tuesday, December 21, 2010 1:29 AM update reply
    Tuesday, December 21, 2010 1:21 AM
  • Try the COMPACT command.  Enter compact /? at a command prompt to see the available parameters.
    • Marked as answer by Zhongjian Monday, December 27, 2010 1:46 AM
    Tuesday, December 21, 2010 8:41 PM