Batch Compression

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,348
Trophies
3
XP
27,317
Country
United Kingdom
A bunch of individual files to seperate files?

My personal preference would be for a batch file and the 7zip command line.
Assuming all files in one directory open a command line window
dir /b (if they are not all in one directory tack a /s on the end to browse a subdirectory and maybe a /p if it is going to run over).
Right click, hit mark and select all you want.
Paste into excel or some spreadsheet. Remember to wrap it in quotes if you have something like C:\program files\ (i.e. a space)

The 7zip command line from the help. You may notice that this could do most of what you want but the command line is more powerful if done properly. This being said you could also play around with the list file support if you wanted.
7z [...] [...]

::= | | |
::= []
::= '/' | '-'
::= @{filename}

Basically you want, I suggest using the 7z version as the 7za version, while standalone, is a bit limited.
7z a -t7z [location\compressed file name.7z] [location\input name]

Insert this before the file names and fill downwards, I advise any spaces be filled with an odd character like # or @ so you can replace easily, copy and paste into notepad and replace tabs with nothing (they copy can paste if your editor does not like it) and the "odd characters" with space.
Save with extension .bat and run it from the 7zip directory.
You will end up with a batch file like this
7z a -t7z "c:\a.7z" "c:\a.txt"
7z a -t7z "c:\b.7z" "c:\b.txt"

Not very glamourous I admit but it works. Play around a bit and you can do just about anything. if you add a -m on the end of the command you can set higher compression and stuff. I suggest reading the bundled help file though.
 

.::5pYd3r::.

Viva La Pizza
OP
Member
Joined
Jun 2, 2007
Messages
765
Trophies
0
Age
28
Location
The GREAT Southern Land :D
Website
Visit site
XP
273
Country
thanx alot
biggrin.gif
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Will you give me mouth to mouth oxygen if my throat closes?
  • K3N1 @ K3N1:
    Nah the air can do that
  • K3N1 @ K3N1:
    Ask @x65943 he's trained for that stuff
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
    A @ abraarukuk: hi guys