Anyone here use 7zip?

Discussion in 'PC' started by Bunford, Mar 15, 2020.

  1. Bunford

    Bunford Audiosexual

    Joined:
    Jan 17, 2012
    Messages:
    2,170
    Likes Received:
    837
    I Have a bunch of folders I need to zip up (about 350 odd). I want to zip each folder into its own 7z zip file. When I select all, I only get the option to zip them all up into a single zip file.

    Anyone know how in 7zip to select multiple folders and zip them to separate individual 7z zip files without have to go through them one by one, as doing them one by one does give you the option to zip into it's own zip file?!?!?!?!

    Doing my nut in trying to work it out!!!!
     
  2.  
  3. alexbart

    alexbart Producer

    Joined:
    Mar 17, 2013
    Messages:
    142
    Likes Received:
    96
    Hi, open notepad or your favourite text editor and copy and paste the following code:

    Code:
    for /d %%X in (*) do "c:\Program Files\7-Zip\7z.exe" a "%%X.7z" "%%X\"
    save the file with a name like "compress.bat"

    it must have the .bat extension.

    Place the file in the same location of the multiple folders to be compressed and double click it.
    A command prompt should open and 7zip will start compressing the folders separately.

    Also remember to not run the .bat as administrator or it will save the compressed files inside system32 folder.

    If you prefer to compress the files into .zip just change "%%X.7z" to "%%X.zip"
     
    Last edited: Mar 15, 2020
    • Like Like x 3
    • Winner Winner x 2
    • Useful Useful x 1
    • List
  4. synths4grins

    synths4grins Producer

    Joined:
    Aug 24, 2017
    Messages:
    149
    Likes Received:
    140
    There is a great backup program called Personal Backup. I've used it a lot over the years and it is a full function backup program that incredibly is FREE (with no adware). It will do what your looking for automatically:
    • Into zip archives (optional split into files of a user defined size):
      • One zip file (supports files > 4GB)
      • One zip file per subdirectory
      • One zip file per root directory
      • One zip file per directory without drive identifier
    It's been around for almost 20 years and is up to version 6.1.2, give it a look.
     
  5. OraMorph

    OraMorph Ultrasonic

    Joined:
    Mar 15, 2020
    Messages:
    132
    Likes Received:
    33
    @alexbart - that is pretty cool!

    i wish they would update 7zip as it doesn't handle new rars very well
     
  6. Bunford

    Bunford Audiosexual

    Joined:
    Jan 17, 2012
    Messages:
    2,170
    Likes Received:
    837
    Worked a treat and saved me a ton of time! HUGE thanks!
     
  7. boogiewoogie

    boogiewoogie Platinum Record

    Joined:
    Sep 15, 2012
    Messages:
    477
    Likes Received:
    196
    In WinRAR you can do it in the GUI, there is an option ”Put each file into separate archive” (also works for folders)
     
  8. alex921

    alex921 Producer

    Joined:
    Jan 27, 2016
    Messages:
    282
    Likes Received:
    120
    No, never used 7zip, what in the world is that?
     
  9. shredonA7

    shredonA7 Newbie

    Joined:
    Apr 12, 2020
    Messages:
    4
    Likes Received:
    0
    This worked well for me ! I'm not trying to become a programmer so I took this short cut .


     
  10. shredonA7

    shredonA7 Newbie

    Joined:
    Apr 12, 2020
    Messages:
    4
    Likes Received:
    0
     
  11. Guitarmaniac64

    Guitarmaniac64 Platinum Record

    Joined:
    Jun 5, 2011
    Messages:
    1,307
    Likes Received:
    297
    I wonder how R2R managed to downsize their 7zip file so much as they did some months ago on their releases as it really saved alot of discspace on my backup disc.
    However they are now back to 7zip files that are almost identical to the original file in size
     
  12. loveriuz

    loveriuz Producer

    Joined:
    Jan 1, 2022
    Messages:
    186
    Likes Received:
    87
    Location:
    East of Jupiter
    by using the best combo of very high compression level, compression method, word size and solid block size....you can compress alot....TADA!
     
Loading...
Loading...