# Simple unzip CLI tool for Windows

**URL:** <https://users.rust-lang.org/t/simple-unzip-cli-tool-for-windows/141059>\
**Category:** announcements\
**Created:** [July 2, 2026, 4:16am UTC](https://users.rust-lang.org/t/simple-unzip-cli-tool-for-windows/141059 "2026-07-02T04:16:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MOCKBA](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/mockba/32/41423_2.png) [@MOCKBA](https://users.rust-lang.org/u/MOCKBA)\
**Post date:** [July 2, 2026, 4:16am UTC](https://users.rust-lang.org/t/simple-unzip-cli-tool-for-windows/141059/1 "2026-07-02T04:16:47Z")

</div>

I found a post about absolutely fabulous utility for manipulating zip files - [zippy](https://users.rust-lang.org/t/introducing-zippy-a-multiplatform-zip-unzip-program/22593/2). Indeed, Windows 11 doesn't include unzip utility, and you need to use the Explorer to unzip a file. It's fine as long as you do not need to write scripts. Since I learn Rust, I decided to write such utility. My bad, because if I used the site search, I would just get zippy earlier, and used it.

```rust
Usage: zipdir [opts] <file> [<content_file>...]
Where opts are:
/e, /-extract
		Extract file if its size is less the max.
/h
		This help screen
/l, /-list
		Show the archive directory
/m number, /-max number
		Max size (in meg) of an extracted file. Should be specified with
		with -e. Default 32MB.
/o string, /-outdir string
		Output directory for extracted files.
/v
		Version of the product
/w, /-overwrite
		Overwrite existing files.
/x, /-exclude
		Provided content entry patterns are considered for exclusion from
		extraction.

```

I wrote the small utility, not AI. So quality can be low and for the reason, I ask to review its [code](https://github.com/vernisaz/simple_rust_zip/blob/master/test/test.rs) and give some feedback. Thank you for your time.

---

<div class="post-metadata">

**Author:** ![asv](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/asv/32/9818_2.png) [@asv](https://users.rust-lang.org/u/asv)\
**Post date:** [July 4, 2026, 9:23am UTC](https://users.rust-lang.org/t/simple-unzip-cli-tool-for-windows/141059/2 "2026-07-04T09:23:08Z")

</div>

Actually, windows 11 contains utility to unpack zip files. Tar.exe can be used for that.

---

<div class="post-metadata">

**Author:** ![MOCKBA](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/mockba/32/41423_2.png) [@MOCKBA](https://users.rust-lang.org/u/MOCKBA)\
**Post date:** [July 4, 2026, 7:20pm UTC](https://users.rust-lang.org/t/simple-unzip-cli-tool-for-windows/141059/3 "2026-07-04T19:20:55Z")

</div>

Indeed:

```rust
tar --help

tar(bsdtar): manipulate archive files
First option must be a mode specifier:
  -c Create -r Add/Replace -t List -u Update -x Extract
Common Options:
  -b # Use # 512-byte records per I/O block
  -f <filename> Location of archive (default \\.\tape0)
  -v Verbose
  -w Interactive
Create: tar -c [options] [<file> | <dir> | @<archive> | -C <dir>]
  <file>, <dir> add these items to archive
  -z, -j, -J, --lzma Compress archive with gzip/bzip2/xz/lzma
  --format {ustar|pax|cpio|shar} Select archive format
  --exclude <pattern> Skip files that match pattern
  --mtime <date> Set modification times for added files
  --clamp-mtime Only set modification times for files newer than --mtime
  -C <dir> Change to <dir> before processing remaining files
  @<archive> Add entries from <archive> to output
List: tar -t [options] [<patterns>]
  <patterns> If specified, list only entries that match
Extract: tar -x [options] [<patterns>]
  <patterns> If specified, extract only entries that match
  -k Keep (don't overwrite) existing files
  -m Don't restore modification times
  -O Write entries to stdout, don't restore to disk
  -p Restore permissions (including ACLs, owner, file flags)
bsdtar 3.8.4 - libarchive 3.8.4 zlib/1.2.13.1-motley liblzma/5.8.1 bz2lib/1.0.8 libzstd/1.5.7 cng/2.0 libb2/bundled 

```

I asked AI, but it looks like I should ask you. AI wasted a couple days of my time. On a good side, I polished my Rust skills. Happy Jul 4, you and your family. Eat a good BBQ and do not think of Rust today.

---

<div class="post-metadata">

**Author:** ![MOCKBA](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/mockba/32/41423_2.png) [@MOCKBA](https://users.rust-lang.org/u/MOCKBA)\
**Post date:** [July 6, 2026, 12:25am UTC](https://users.rust-lang.org/t/simple-unzip-cli-tool-for-windows/141059/4 "2026-07-06T00:25:31Z")

</div>

Using Rust for unzipping was absolutely wasting of a time. Tar is about 50% faster, because C code. It has only slightly more complex syntax:

> dirzip /eo ~ \*zip

> tar -xf rds-1.53.02.zip -C "C:\Users\sunil"

Rust is more verbose in an archive listing, however I wouldn't call it as an advantage:

 ![Screenshot_4-7-2026_19447_win-pc](https://us1.discourse-cdn.com/flex019/uploads/rust_lang/original/3X/c/d/cd838ab6850b39f25d9765f5ed6ce9bab7282c8a.jpeg)

But it has no benefits for me, since all my scripts are silent anyway. So thanks again for the suggestion to use 'tar'.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/users.rust-lang.org/system/32/51372_2.png) [@system](https://users.rust-lang.org/u/system)\
**Post date:** [October 4, 2026, 12:25am UTC](https://users.rust-lang.org/t/simple-unzip-cli-tool-for-windows/141059/5 "2026-10-04T00:25:32Z")

</div>

Closed on October 4, 2026, 12:25am UTC

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.
