:: ======== 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