zipping all maps

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

Mar 28, 2013

zipping all maps by riyaz at 9:43 PM (447 Views / 0 Likes) 3 replies

  1. riyaz
    OP

    Member riyaz Black Ace/Red Joker

    Joined:
    Jun 21, 2011
    Messages:
    1,129
    Location:
    everywhere
    Country:
    Netherlands
    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

    Reporter FAST6191 Techromancer

    pip
    Joined:
    Nov 21, 2005
    Messages:
    21,746
    Country:
    United Kingdom
    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

    Member Necron Lurking~

    Joined:
    Dec 29, 2008
    Messages:
    861
    Location:
    Mi casa
    Country:
    Chile
    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

    Member riyaz Black Ace/Red Joker

    Joined:
    Jun 21, 2011
    Messages:
    1,129
    Location:
    everywhere
    Country:
    Netherlands
    thank you! :D
     

Share This Page