Menu

compress a folder WITHOUT any sub folders

2016-03-09
2016-03-09
  • Michael Gould

    Michael Gould - 2016-03-09

    This is, I believe, a topic that is already out there described in a variety of ways, so let me
    give a real life example:

    I want to compress "C:\Windows\System32" without all of the sub folders.

    this example:

    7z a -x!*\ D:\zipfile c:\FolderParent

    produces an empty file

    Anyone figured out how to just get the files of a folder without any sub folders?

    Sometimes you just want the folder and its contents not the entire parent/child tree

     

    Last edit: Michael Gould 2016-03-09
  • Igor Pavlov

    Igor Pavlov - 2016-03-09
    cd /d C:\Windows\System32
    7z a c:\a.7z -x!*\
    
     

Log in to post a comment.

MongoDB Logo MongoDB