CMD command-package and compress

Source: Internet
Author: User

After you have the permission to run mongoshell, the next step is to package and download its entire web directory. Here, of course, the necessary tool WinRAR is indispensable.
Winrarwill be installed at some sites. If not, upload rar.exe. The detailed RAR commands can be found in the "rar.txt" file in the WinRAR installation directory. Maybe you have no patience to read them. Here we will introduce simple commands to you: A packaging example is provided, which is helpful to you.

For example, pack all the Dongxi files under the c: \ temp \ directory as web.rar and put it under the C: \ temp \ directory for download.

The bat file is as follows:

CD \
CD Program Files \ WinRAR \

Rar.exe a-k-r-s-M3 c: \ temp \ temp.rar c: \ temp \

 

Parameter description:
A. Add the file to the compressed file.
-K: Lock the compressed file
-S Generates solid archives to increase the compression ratio.
-R includes subdirectories
-M1 sets the compression ratio.
-When you add M0 storage to a compressed file, the file is not compressed.
-M1: the fastest way to use (low compression)
-M2: Fast Compression
-Standard (default) compression mode for M3
-M4: better compression mode (better compression, but slow)
-M5 is best to use the maximum compression method (the best compression, but the slowest)

Later, you will see the web.rar file in the web directory.

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.