Batch BAT file DOS command to implement file decompression

Source: Internet
Author: User


:: ======== Compressed file =======================

:: Compress files under the source path "C:\Users\xcc\Desktop\ economy" path to the target path "d:\ thunderbolt download \ Compress. rar", generated as self-extracting file
:: Parameter Description:
:: A: Add the specified file (source directory, here is "%userprofile%\favorites") and folder to the compressed file (destination file, here is "D:\My Documents\favorites.exe").
::-as: This is a switch, refers to the way to add the "Sync compressed file content"
::-R: Indicates "contains subfolders"
::-sfx: Indicates that a self-extracting file was created
::-ep1: Indicates that the path%userprofile% is not saved in a compressed file
:: Details Reference http://www.cnblogs.com/huangye-dream/p/3584965.html

"C:\Program files\winrar\winrar.exe" a-as-r-sfx-ep1 d:\ thunder download \ Compress. rar C:\Users\xcc\Desktop\ how big the economy

:: Compress into normal files instead of self-extracting files
"C:\Program files\winrar\winrar.exe" a-as-r-ep1 d:\ thunder download \ Compress. rar C:\Users\xcc\Desktop\ how big the economy

:: ========== Unzip the file ======================
:: The source file "d:\ Thunderbolt download \ Compress. rar" Decompression to the target path "d:\ new Folder"
"C:\Program files\winrar\winrar.exe" x "d:\ thunderbolt download \ Compress. rar" "D:\ new Folder"

Batch BAT file DOS command to implement file decompression

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.