📄 rar.txt
字号:
from directory 'sources', all other files will be deleted from the archive. It looks similar to creating a new archive, but with one important exception: if no files are modified since the last backup, the operation is performed much faster than the creation of a new archive. -av Put authenticity verification (registered versions only). RAR will put, in every new and updated archive, information concerning the creator, last update time and archive name. If an archive, containing authenticity verification, is being modified and this switch is not specified, the authenticity verification information will be removed. When extracting, testing, listing or updating an archive with the '-av' switch, RAR will perform integrity validation and display the message: Verifying authenticity information ... In the case of successful authenticity verification, the message 'Ok', creator name and last update information will be displayed. In the case of authenticity verification failure, the message 'FAILED' will be displayed. The Authenticity Verification feature, '-av,' is recommended for use with archives in a software distribution environment. In order to enable the Authenticity verification feature, the program MUST be registered. Please contact your local distribution site or the world-wide distribution center. -av- Disable authenticity verification checking or adding. -cfg- Ignore configuration file and RAR environment variable. -cl Convert file names to lower case. -cu Convert file names to upper case. -c- Disable comments show. -df Delete files after archiving Move files to archive. This switch in combination with the command "A" performs the same action as the command "M". -dh Open shared files Allows to process files opened by other applications for writing. This switch helps if an application allowed read access to file, but if all types of file access are prohibited, the file open operation will still fail. This option could be dangerous, because it allows to archive a file, which at the same time is modified by another application, so use it carefully. -ds Do not sort files while adding to a solid archive. -ed Do not add empty directories This switch indicates that directory records are not to be stored in the created archive. When extracting such archives, RAR creates non-empty directories basing on paths of files contained in them. Information about empty directories is lost. All attributes of non-empty directories except a name (access rights, streams, etc.) will be lost as well, so use this switch only if you do not need to preserve such information. If -ed is used with 'm' command or -df switch, RAR will not remove empty directories. -ee Do not process extended attributes Disables saving and restoring extended file attributes. Only for OS/2 versions. -en Do not add "end of archive" block By default, RAR adds an "end of archive" block to the end of a new or updated archive. It allows to skip external data like digital signatures safely, but in some special cases it may be useful to disable this feature. For example, if an archive is transferred between two systems via an unreliable link and at the same time a sender adds new files to it, it may be important to be sure that the already received file part will not be modified on the other end between transfer sessions. This switch cannot be used with volumes, because the end of archive block contains information important for correct volume processing. -ep Exclude paths from names. This switch enables files to be added to an archive without including the path information. This could, of course, result in multiple files existing in the archive with the same name. -ep1 Exclude base dir from names. Do not store the path entered in the command line. Example: all files and directories from the directory tmp will be added to the archive 'test', but the path in archived names will not include 'tmp\' rar a -ep1 -r test tmp\* This is equivalent to the commands: cd tmp rar a -r ..\test cd .. -ep2 Expand paths to full. Store full file paths (except a drive letter and leading path separator) when archiving. -ep3 Expand paths to full including the drive letter. Win32 version only. This switch stores full file paths including the drive letter if used when archiving. Drive separators (colons) are replaced by underscore characters. If you use -ep3 when extracting, it will change underscores back to colons and create unpacked files in their original directories and disks. If the user also specified a destination path, it will be ignored. This switch can help to backup several disks to the same archive. For example, you may run: rar a -ep3 -r backup.rar c:\ d:\ e:\ to create backup and: rar x -ep3 backup.rar to restore it. But be cautious and use -ep3 only if you are sure that extracting archive does not contain any malicious files. In other words, use it if you have created an archive yourself or completely trust its author. This switch allows to overwrite any file in any location on your computer including important system files and should normally be used only for the purpose of backup and restore. -e[+]<attr> Specifies file exclude or include attributes mask. <attr> is a number in the decimal, octal (with leading '0') or hex (with leading '0x') format. By default, without '+' sign before <attr>, this switch defines the exclude mask. So if result of bitwise AND between <attr> and file attributes is nonzero, file would not be processed. If '+' sign is present, it specifies the include mask. Only those files which have at least one attribute specified in the mask will be processed. In Windows version is also possible to use symbols D, S, H, A and R instead of a digital mask to denote directories and files with system, hidden, archive and read-only attributes. The order in which the attributes are given is not significant. Unix version supports D and V symbols to define directory and device attributes. It is allowed to specify both -e<attr> and -e+<attr> in the same command line. Examples: 1) archive only directory names without their contents rar a -r -e+d dirs 2) do not compress system and hidden files: rar a -esh files 3) do not extract read-only files: rar x -er files -f Freshen files. May be used with archive extraction or creation. The command string "a -f" is equivalent to the command 'f', you could also use the switch '-f' with the commands 'm' or 'mf'. If the switch '-f' is used with the commands 'x' or 'e', then only old files would be replaced with new versions extracted from the archive. -fcu[file] Use Unicode text format when adding or writing archive comments. When adding a comment to archive, this switch modifies behavior of -z[file] switch forcing RAR to process the specified file as Unicode text. Such Unicode file must have FFFE or FEFF Unicode character in the beginning, otherwise RAR will ignore this switch and process the file as ASCII text. It is allowed to replace "-fcu -z[file]" combination with the single -fcu[file] switch. When using together with "cw" command, -fcu switch sets the format of output file to low endian Unicode text. -hp[p] Encrypt both file data and headers. This switch is similar to -p[p], but switch -p encrypts only file data and leaves other information like file names visible. This switch encrypts all sensitive archive areas including file data, file names, sizes, attributes, comments and other blocks, so it provides a higher security level. Without a password it is impossible to view even the list of files in archive encrypted with -hp. Example: rar a -hpfGzq5yKw secret report.txt will add the file report.txt to the encrypted archive secret.rar using the password 'fGzq5yKw' -id[c,d,p,q] Disable messages. Switch -idc disables the copyright string. Switch -idd disables "Done" string at the end of operation. Switch -idp disables the percentage indicator. Switch -idq turns on the quiet mode, so only error messages and questions are displayed. It is allowed to use several modifiers at once, so switch -idcdp is correct. -ieml[.][addr] Send archive by email. Win32 version only. Attach an archive created or updated by the add command to email message. You need to have a MAPI compliant email client to use this switch (most modern email programs support MAPI interface). You may enter a destination email address directly in the switch or leave it blank. In the latter case you will be asked for it by your email program. It is possible to specify several addresses separated by commas or semicolons. If you append a dot character to -ieml, an archive will be deleted after it was successfully attached to an email. If the switch is used when creating a multivolume archive, every volume is attached to a separate email message. -ierr Send all messages to stderr. -ilog[name] Log errors to file (registered version only). Write error messages to the file rar.log created in RAR directory. It is possible to specify another log file name instead of the default rar.log in the switch, for example, -ilogc:\log\backup.log. If the specifed name does not include the path, the log file will be created in the RAR directory. -inul Disable all messages. -ioff Turn PC off after completing an operation. The hardware must support the power off feature. Win32 version only. -isnd Enable sound. -k Lock archive. Any command which intends to change the archive will be ignored. -kb Keep broken extracted files. RAR, by default, deletes files with CRC errors after extraction. The switch -kb specifies that files with CRC errors should not be deleted. -m<n> Set compression method: -m0 store do not compress file when adding to archive -m1 fastest use fastest method (less compressive) -m2 fast use fast compression method -m3 normal use normal (default) compression method -m4 good use good compression method (more compressive, but slower) -m5 best use best compression method (slightly more compressive, but slowest) If this switch is not specified, RAR uses -m3 method (normal compression). By default, RAR uses only the general compression algorithm in -m1 and -m2 methods, advanced algorithms like audio and true color processing are enabled only in -m3..-m5 modes, the advanced text compression is activated only in -m4..-m5. This default can be overridden using -mc switch.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -