Suppose I had a RAR archive split in several smaller files and the names of the resulting files have later on been changed.

Is there any way to determine the correct order of files?

link|improve this question

73% accept rate
feedback

1 Answer

I have found the specification of the rar headers, it does not mention multipart explicity but it looks like it is covered by it.

Looking at the 'archive' headers, there are not fields that show the order of the file. Of course, that specification is incomplete (there are even two reserved fields), but I found nothing better in the web.

Here is the source coude to unrar, from there you should be able to know if there is such thing. But if you are able to check this, probably it will be easier to just write a program to try all permutations of the files and check with the unrar DLL if it works or not...

So, my answer is "if it is possible at all, it is complicated to find out". My bet would be contacting suport@rarlab.com and hope for the best

link|improve this answer
Looks interesting! If I don't manage to decode the format, I'll probably end up writing shell script to try everything out. – AndrejaKo Nov 19 '11 at 20:25
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.