Using command line compression in Windows

by

After a long a fruitless search to use a command line option for Microsoft’s “Send To > Compressed (Zipped) Folder” I saw the light and found 7-zip.

7-zip is an open source compression tool that allows it to be used in a command line way as well as a GUI. Go to http://www.7-zip.org/ and download the latest version, then when you write a script, here is a quick and dirty example of a command line for the app;

“c:\program files\7-zip\7z.exe” a “d:\backup files\compressed.zip” “c:\working files\uncompressed.txt”

Advertisements

Tags: , , , , , , , , , , , , ,

2 Responses to “Using command line compression in Windows”

  1. Mat Says:

    but what ever happened pkzip tools. that we used to unpack duke nukem 3d
    lol

  2. Mat Says:

    PKZIP has been providing industry-leading ZIP compression for DOS systems for nearly 25 years. PKWARE is committed to file interoperability–files saved using the original PKZIP products can still be opened by any current PKWARE products.

    http://www.pkware.com/software-pkzip/dos-compression

    going old school

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: