CodePudding user response:
Or use winrar command line, should be able to reach your effectCodePudding user response:
Usage: rar & lt; Command & gt; - & lt; Switch 1 & gt; - & lt; Switch N><@ list file...>
C to add zip file comments
Cf add file comments
The cw write compressed file comments to the file
D the compressed files are deleted files
E extract the compressed file to the current directory
F the refresh files
in a compressed fileI [parameter]=& lt; String & gt; In the compressed file search string
K lock compressed file
L/t and b lists the compressed file/technical information, concise
M [f] move to the compressed file [only] on the document
P to print file to the standard output device
R repair compressed file
Rc to rebuild the lost volume
Rn renamed compressed file
The rr [N] adds data recovery record
The rv [N] create recovery volume
S | - [name] for self-extracting compressed file format or convert back to the compressed file
T test compressed file
U update files
in a compressed fileV (t, b] details compressed files/technical information, concise
X using absolute path to unzip the files
Ac compression or decompression after removal of archive attribute
AD a compressed file name is added to the target path
Ag [form] using the current date generated compressed file name
Ao add file with compression attribute
Ap
Av add user identity (only registered version available)
Av - disable user identity check
C - disable comments show
CFG - disable reading configuration
Cl name converted to lowercase
Cu name converted to uppercase
Df compression after deleting files
Dh open Shared file
Ds disabled for solid solid compressed file name sorting
E [+]
En don't add "end of the compressed file" sign
Ep out of name path
Ep1 wiped from the name of the base directory
Ep2 expand for the full path to the
Ep3 extension path to include drive full path
F the refresh file
HP/password encrypted file data, and at the same time file header
Id [c, d, p, q] disable message
Ieml [properties] use E-mail to send compressed files
Ierr send all messages to the standard error device
Ilog [name] writes the error log file (only registered version available)
Inul disable all messages
Ioff complete closed after the PC power supply for the operation of a
Isnd enable voice
K lock compressed file
KB keep damage has been unzip the files
M<0.. 5> Set the compression level (0 - storage... 3 - the default... 5 - the largest)
Mc
N
N @ & lt; List & gt; In the specified file list including file
O + overwrite existing files
O - don't overwrite existing files
Oc set NTFS compression properties
OS preserve NTFS flow
Ow save or restore file owner and group
P [code] password
P - do not ask passwords
R recursive directory
R0 recursive wildcards only the name of the subdirectory
Ri
[: & lt; S>] Set the priority (default, 0-1 - minimum.. 15 - the largest) and in milliseconds of sleep time
The rr [N] adds data recovery record
The rv [N] create recovery volume
S [[-]
S - disable solid solid compressed file
SFX [name] create self-extracting compressed file
St [name] from the standard input device reads the data (stdin)
T after compression test file
Ta
Tl sets the compressed file for the latest time
TnToTs
U update file
V automatically detect create volume or the size of the list all
V
Ver [n] file versioning
.vn using the old style of naming scheme
Vp per volume pause before
W
X @ & lt; List & gt; Exclude list files in the specified file
Y assumptions for all ask answer is
Z
For example:
1. Create a batch file, play a role in only 1 row:)
=======================================
BackFav. Bat (names can literally) content of the file:
REM this batch file is used to automatically backup my favorites
REM WinRAR & lt; Command & gt; - & lt; Switch 1 & gt; - & lt; Switch N>
=========================================
Parameter description:
A: add the specified file (source directory, here is the "% USERPROFILE %" Favorites ") to the compressed file and folder (the target file, here is the "d:" my documents "Favorites. Exe"),
- as: this is a switch, refers to add way "synchronous compressed file content
"
- r: said "contains a folder
"
- SFX: said established is a self-extracting files
From - zsfxpara. TXT file sfxpara. TXT read zip files, what's the use of this annotation explanation behind
- ep1: it means don't keep the path % USERPROFILE % in the compressed file
2. The role of the annotations file
Build compressed file not only should consider to compress the file, consider how to unzip, via the annotation files can be compressed packet delivery many useful information,
Sfxpara. TXT content:
PATH=% USERPROFILE % "
Silent=1