WinRAR Introduction to command line mode usage

Source: Internet
Author: User
Tags rar time in milliseconds

Due to the work of the data packaging, by the way the next WinRAR command line mode, wrote some examples, the basic usage is as follows:

Test compressed File Preparation: Folder Test_data, the internal contains subfolders, respectively, stored some *.log and *.txt files.

The test code is as follows:

1 REMcompress all files, compress by type, zip package2WinRAR.exe a num_all.zip. \test_data3WinRAR.exe a num_txt.zip. \test_data\num*.txt4WinRAR.exe a num_log.zip. \test_data\num*.Log5  6  REMcompress all files, compression by type, RAR packaging7WinRAR.exe a num_all.rar. \test_data8WinRAR.exe a num_txt.rar. \test_data\num*.txt9WinRAR.exe a num_log.rar. \test_data\num*.LogTen  One REMdefault compression root, recursively processing subfolders using-R AWinRAR.exe a-r num_all_tg.zip. \test_data\*.* -WinRAR.exe a-r num_all_txt.zip. \test_data\*.txt -WinRAR.exe a-r Num_all_log.rar. \test_data\*.Log the   -   - REMAdd comments, comments read from a TXT file, txt filename info.txt -WinRAR.exe c-zinfo.txt Num_all.Zip +WinRAR.exe c-zinfo.txt Num_all.rar -   +  REMread comments from a compressed package, write to the Read.txt file, default ASCII, parameter-SCUC to represent Unicode AWinRAR.exe CW Num_all.zip Read1_ascii.txt atWinRAR.exe CW Num_all.rar Read2_ascii.txt -WinRAR.exe CW-SCUC Num_all.rar Read_unicode.txt -    -   REMTo delete a development file from a compressed package -WinRAR.exe d Num_all_tg.zip *.Log -   in  REMunzip to the current directory, without the path within the compressed package -WinRAR.exe e Num_all_tg.Zip to  REMunzip to the development directory, without the path within the compressed package +WinRAR.exe e num_all_tg.zip. \test_d2 -  REMunzip to current directory, unzip only the type of file theWinRAR.exe e Num_all_tg.zip *.Log *   $  REMRenaming files within a compressed packagePanax NotoginsengWinRAR.exe RN num_all_tg.zip num (1). txt num (1). bak num (2). txt num (2).Bak -WinRAR.exe RN Num_all.rar *.txt *.Bak the    +  REMextract the absolute path using compression package pinch AWinRAR.exe x NUM_ALL_TG.Zip the  REMExtract the specified type file using the absolute path of the compression package pinch +WinRAR.exe x Num_all_tg.zip *.Log -  REMExtract the specified type file and extract to the specified folder using the absolute path of the compression package pinch $WinRAR.exe x num_all_tg.zip *log. \new_data\

The above is the basic compression of WinRAR, decompression command.

About the switch option of WinRAR, later to study and organize.

Note: WinRAR.exe for installation, the main program from the installation directory WinRAR.exe copy it, the program is independent and can be run.

The following is the WinRAR command to help with the original text:

Alphabetic Commands List

A Add files to an archive
C Add an archive comment
Ch Change archive parameters
Cv Convert Archives
cw Write a archive comment to file
D Delete files from an archive
E Extract files from an archive, ignoring paths
F Freshen files within an archive
I Find string in Archives
K Lock an archive
M Move files and folders to an archive
R Repair a damaged archive
Rc Reconstruct missing volumes
Rn Rename archived files
Rr[n] Add Data Recovery Record
Rv[n] Create recovery volumes
S[name] Convert an archive to a self-extracting type
S- Remove SFX Module
T Test archive files
U Update files within an archive
X Extract files from a archive with full paths

Reprint someone else's translation:

Usage: RAR < command >-< switch 1>-< switch n> < zip file > < file ...><@ list file ...> < unzip path ">

< commands >
A add files to a compressed file
C Add a compressed file comment
CF Add File Comment
CW Write compressed file comment to file
D Delete files in a compressed file
E Unzip the compressed file to the current directory
f refreshing files in a compressed file
i[parameter]=< string > Finding strings in Compressed files
K Lock Compressed files
L[T,B] List compressed files [technical information, concise]
M[F] Move to compressed file [file only]
P print file to standard output device
R Repair Compressed Files
RC Rebuilding a missing volume
RN Renaming compressed Files
RR[N] Adding data recovery records
Rv[n] Create a recovery volume
s[name |] Convert compressed file to self-extracting format or convert back to compressed file
T test compressed files
U update files in a compressed file
V[T,B] Detailed list of compressed files [technical information, concise]
x extract files with absolute path

< switches >
-Stop Scanning
Clearing archive properties After AC compression or decompression
Ad adds a compressed file name to the destination path
ag[format] Generate compressed file names using the current date
Ao Adding a file with a compressed property
ap< format > Add path to Compressed file
As synchronous compressed file contents
AV Add user Identity Check (only registered version available)
av-Disabling user identity checking
C-Disable Comment display
cfg-Disabling Read configuration
CL name converted to lowercase
CU name converted to uppercase
Delete files after DF compression
DH Open Shared File
DS Disables name sorting for solid compressed files
e[+]< Properties > settings file exclusions and include properties
Ed does not add an empty directory
En does not add the "End of compressed Files" flag
EP excludes paths from names
EP1 exclude the base directory from the name
EP2 Expand to full path
The EP3 extension path is the full path that contains the drive letter
F Refreshing files
hp[Password] Simultaneously encrypt the file data and the file header
ID[C,D,P,Q] Disabling messages
ieml[Properties] Send compressed files by e-mail
Ierr send all messages to standard error devices
ilog[Name] Write the error to the log file (only the registered version is available)
Inul Disable all messages
Ioff power off the PC after completing an operation
ISND Enable sound
K Lock Compressed files
KB preserves corrupted extracted files
M<0..5> Setting the compression level (0-storage ... 3-Default ... 5-Max)
mc< Parameters > Setting Advanced compression parameters
md< size > Dictionary size in kilobytes (64,128,256,512,1024,2048,4096 or A-G)
Ms[ext;ext] Specifies the type of file stored
n< file > contains only the specified file
[email protected] read the file name from the standard input device to include
[Email protected]< list > Include files in the specified file list]
o+ Overwrite Existing Files
o does not overwrite existing files
OC Setting NTFS Compression Properties
OS Save NTFS Stream
ow save or restore file owners and groups
p[Password] Set password
P do not ask for password
R Recursive Sub-directory
R0 subdirectories with recursive wildcard names only
Ri<p>[:<s>] Set Priority (0-default, 1-Minimum: 15-Max) and sleep time in milliseconds
RR[N] Adding data recovery records
Rv[n] Create a recovery volume
S[&LT;N&GT;,V[-],E] Create a solid compressed file
S-Disable solid compaction files
sfx[name] Create self-extracting compressed file
st[name] Read data from a standard input device (stdin)
T compress post-test file
ta< Date > Add date < date > After modified file, date format YYYYMMDDHHMMSS
tb< Date > Add Date < date > pre-Modified file, date format YYYYMMDDHHMMSS
TK retains original compressed file time
TL Set the compressed file time to the latest file time
tn< time > Add < time > Future files
to< time > Add < time > previous files
Ts<m,c,a>[n] Save or restore file time (modify, create, access)
U update file
V automatically detects the size of the created volume or lists all volumes
v< size >[k,b] Create volume size =< size >*1000 [*1024, *]
VD Clear disk contents before creating capacity
Ver[n] File version control
VN using the old-style volume naming scheme
VP paused before each volume
w< path > Specify working directory
x< file > exclude specified files
[email protected] read the file name to be excluded from the standard input device
[Email protected]< list > exclude files from the specified list file
Y Suppose the answer to all questions is
z< file > Read compressed file comments from a file

WinRAR Introduction to command line mode usage

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.