As before, files can be in different ways, but, as I will show later, this is not always the case.
If you use WinRAR to display the contents of a file, and your parameters are set as follows, then only you have files with the same name, but they are in different paths.
- Options → File List → View flat folders (ctrl + h)
- Options → File List → Details
After the CRC32 column, there is one called Path. If this is not the case, extraction should not be a problem if:
- Extract → Extract path and parameters → Advanced → Extract relative paths.
, WinRAR - .
, unrar , , .
, RAR . Windows, "C:\Program Files\WinRAR\Rar.exe",
rar .
RAR. , .
rar a rarfile.rar testfile.txt
rar l rarfile.rar
rar a rarfile.rar testfile.txt
, rar .
Updating archive rarfile.rar
Updating testfile.txt OK
Done
RAR.
move testfile.txt second.txt (new file)
rar a rarfile.rar second.txt (add it)
rar lb rarfile.rar (list archive, bare info)
.
rar rn rarfile.rar second.txt testfile.txt
RAR . WinRAR. , .
- ?
, , , , , / . , , WinRAR . , WinRAR: -)
: , RAR:
-ver[n] File version control
Forces RAR to keep previous file versions when updating
files in the already existing archive. Old versions are
renamed to 'filename;n', where 'n' is the version number.
By default, when unpacking an archive without the switch
-ver, RAR extracts only the last added file version, the name
of which does not include a numeric suffix. But if you specify
a file name exactly, including a version, it will be also
unpacked. For example, 'rar x arcname' will unpack only
last versions, when 'rar x arcname file.txt;5' will unpack
'file.txt;5', if it is present in the archive.
If you specify -ver switch without a parameter when unpacking,
RAR will extract all versions of all files that match
the entered file mask. In this case a version number is
not removed from unpacked file names. You may also extract
a concrete file version specifying its number as -ver parameter.
It will tell RAR to unpack only this version and remove
a version number from file names. For example,
'rar x -ver5 arcname' will unpack only 5th file versions.
If you specify 'n' parameter when archiving, it will limit
the maximum number of file versions stored in the archive.
Old file versions exceeding this threshold will be removed.