zipping all maps

Discussion in 'Computer Programming, Emulation, and Game Modding' started by Riyaz, Mar 28, 2013.

  1. Riyaz
    OP

    Riyaz Black Ace/Red Joker

    Member
    1,253
    701
    Jun 21, 2011
    Netherlands
    everywhere
    Warning: Spoilers inside!
    lets say i have all these maps and i want to zip them do i need to zip each map individually or can i zip them all at once and get this?:
    Warning: Spoilers inside!
     
  2. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,154
    8,895
    Nov 21, 2005
    You could go individually but if you have a halfway nice compression program (or just get 7zip) it should have a command line option and you can hopefully use that (either by listing the directories first and making a batch file from that or possibly using a for loop) to compress a whole folder.

    Edit-
    the for command if you have the 7z program in the directory or your path will be something like
    Code:
    for /d /r %G in ("*") DO 7z a "%G.7z" "%G"
    
    Edit2 - I looked up the winrar command line syntax and it will probably be something like

    Code:
    for /d %G in ("*") DO rar a -r "%G.rar" "%G"
    
    rar a -r yourfiles.rar *.txt c:\yourfolder

    creates archive yourfiles.rar and compresses all .txt files in c:\yourfolder and all its subfolders
     
    Riyaz likes this.
  3. Necron

    Necron Lurking~

    Member
    876
    118
    Dec 29, 2008
    Chile
    Mi casa
    With winrar, select all the files/folders, right click on them, click on "Add to archive..." then in the Files tab check "Put each file to separate archive"

    That should work.
     
    Celice and Riyaz like this.
  4. Riyaz
    OP

    Riyaz Black Ace/Red Joker

    Member
    1,253
    701
    Jun 21, 2011
    Netherlands
    everywhere
    thank you! :D