How to compress file from command line

Saturday, September 26, 2009 Leave a Comment

We can use compress.exe utility to compress a file from command line. See syntax below.

To coompress a file file1.txt:
compress file1.txt compressedfile1.txt

This tool is available for public download as part of windows server 2003 resource kit. It can be downloaded from the  below location.


http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en

0 comments »

Leave your response!