📄 rar.txt
字号:
-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. -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 added to archive. If '+' sign is present, it specifies the include mask. Only those files which have at least one attribute specified in the mask will be added to archive. 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 -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. -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. -mc<par> Set advanced compression parameters. This switch is intended mainly for benchmarking and experiments. In the real environment it is usually better to allow RAR to select optimal parameters automatically. Please note that improper use of this switch may lead to very serious performance and compression loss, so use it only if you clearly understand what you do. It has the following syntax: -mc[param1][:param2][module][+ or -] where <module> is the one character field denoting a part of the compression algorithm, which has to be configured. It may have the following values: A - audio compression; C - true color (RGB) data compression; D - delta compression; E - 32-bit x86 executables compression; I - 64-bit Intel Itanium executables compression; T - text compression. '+' sign at the end of switch applies the selected algorithm module to all processed data, '-' disables the module at all. If no sign is specified, RAR will choose modules automatically, based on data and the current compression method. Switch -mc- disables all optional modules and allows only the general compression algorithm. <Param1> and <Param2> are module dependent parameters described below. Audio compression, delta compression: <Param1> is a number of byte channels (can be 1 - 31). RAR splits multibyte channels to bytes, for example, two 16-bit audio channels are considered by RAR as four channels one byte each. <Param2> is ignored. 32-bit x86 Intel executables compression, 64-bit Intel Itanium executables compression, true color (RGB) data compression: <Param1> and <Param2> are ignored. Text compression: <Param1> is the order of PPM algorithm (can be 2 - 63). Usually a higher value slightly increases the compression ratio of redundant data, but only if enough memory is available to PPM. In case of lack of memory the result may be negative. Higher order values decrease both compression and decompression speed. <Param2> is memory in megabytes allocated for PPM (1-128). Higher values may increase the compression ratio, but note that PPM uses the equal memory size both to compress and decompress, so if you allocate too much memory when creating
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -