[color=black][font=Times New Roman][font=Verdana][size=2]I have 760 or so files that I would like to compress into zip files I do not want to make them all into one big file I need all the files into separate zip archives so I would have 760 zip files. Any ideas on how to do it without doing it one by one?[/size][/font][/font][/color]
I’m in love with Perl, so I’d write a small Perl script to do it…
#!/usr/bin/perl
opendir DIR, ".";
my @fns;
while ($fn = readdir(DIR)) {
push(@fns, $fn);
}
closedir DIR;
foreach @fns {
($fn, $ext) = /^(.*)\.(.*?)$/;
`pkzip -a $fn $_`;
}
You can get a free version of Perl for Windows at www.activestate.com. You’ll also need the command line version of PKZIP for the script to work. I think version 2.04g was the last free one. You could substitute another command line zipper if you want…
(Disclaimer: The code isn’t tested)
You can also use WinAce
www.winace.com
You can tell it to make each file an individual library and have one File that extracts them all. I am not sure this is what your looking for though thats more for breaking down files for more user friendly “chunks”
I was just going to say that Fester, you could also use WinRar, it’s my favorite of all of them.
Right on bro :thumb:
WinRar runs the show.