Use of compression and decompression tools under DOS

Source: Internet
Author: User
Tags zip password protection

As you know, in order to save the file and save space occupancy, the file is often compressed. Moreover, because the file is compressed usually only a compressed file, easy to carry, but also password protection, so the file compression and decompression has become a common use of an operation, then how to do these operations? Here is a description of the DOS compression/decompression method.

Because of the different compression software, there are several compressed files, the most common compression format has zip, RAR, ARJ and so on. In particular, the ZIP format is most widely used. Dos for these zip files to compress operations have a lot of tools, such as PKZIP, Infozip, and so on, the most famous and most practical is the Pkzip/pkunzip tool, running the self-extracting file, and then can be used directly, without the need for installation. Some people use WinZip, WinRAR and other tools, from installation to use, usually need to take a series of steps to complete an operation, and Pkzip/pkunzip is very different, it inherits the DOS convenient and practical features, easy to use, Usually a single command can be used to do the corresponding operation of the zip, fast and efficient. Moreover, the Pkzip/pkunzip 2.50 is also very powerful, not only a very comprehensive operation, but also full support for file lists and long file names. The following are the Pkzip/pkunzip usage and common command-line arguments:

pkzip [options] zip filename [file name to compress]

Among them, the commonly used options are (case-insensitive):

-a adds a file to the compressed file.

-D deletes the file from the compressed file.

-F refreshes files in the compressed file.

-U updates files in a compressed file.

-p Stores the relative path of the file to be compressed.

-R remembers the path structure of the file being compressed.

-S sets the password for the compressed file.

-V View the contents of the compressed file.

Excludes the specified file when-X compression.

-Z Add or modify annotations for compressed files.

For example: Pkzip-a-s:file BMPS. ZIP d:\*. BMP, this command compresses all files under D:\ with BMP to add to the Bmps.zip file and sets the compression password to "file".

If no option is specified, the Add/update file is automatically added to the zip compressed file, and all files under the current folder are operated by default if you do not specify a filename to compress. For example: PKZip FILES. Zip to compress all files under the current folder and add them to the files.zip.

pkunzip [options] zip filename [filename to extract] [path to extract]

Among them, the commonly used options are (case-insensitive):

-D restores the path structure stored in the compressed file.

-E Extract the files from the compressed file.

-F refreshes the extracted files.

-O If this file is already in the case of decompression, direct overwrite operation.

-S Enter the password for the compressed file for decompression.

-T tests the integrity of the compressed file.

-V View the contents of the compressed file.

-X excludes the specified file when extracting.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.