# .zip files

**URL:** https://forum.kirupa.com/t/zip-files/62226
**Category:** random
**Created:** [August 26, 2004, 2:03am UTC](https://forum.kirupa.com/t/zip-files/62226 "2004-08-26T02:03:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Xpeder](https://avatars.discourse-cdn.com/v4/letter/x/22d042/32.png) [@Xpeder](https://forum.kirupa.com/u/Xpeder)
#### Post date: [August 26, 2004, 2:03am UTC](https://forum.kirupa.com/t/zip-files/62226/1 "2004-08-26T02:03:09Z")

</div>

[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]

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 26, 2004, 5:44am UTC](https://forum.kirupa.com/t/zip-files/62226/2 "2004-08-26T05:44:47Z")

</div>

I’m in love with Perl, so I’d write a small Perl script to do it…

```auto

#!/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](http://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)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 26, 2004, 12:34pm UTC](https://forum.kirupa.com/t/zip-files/62226/3 "2004-08-26T12:34:23Z")

</div>

You can also use WinAce  
[www.winace.com](http://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”

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 26, 2004, 12:38pm UTC](https://forum.kirupa.com/t/zip-files/62226/4 "2004-08-26T12:38:03Z")

</div>

I was just going to say that Fester, you could also use WinRar, it’s my favorite of all of them.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 26, 2004, 1:03pm UTC](https://forum.kirupa.com/t/zip-files/62226/5 "2004-08-26T13:03:48Z")

</div>

> [@SureShot](#):
>
> 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.
