title: How to know which rar is first in multi rar archives using SevenZipSharp/Unrar in C#?
body: <p>I am trying to use SevenZipSharp or/and Unrar library in C# WinForms .NET 3.5. I have this problem with multi rar archives that have diffrent naming for example:</p>
  
  <ul>
  <li>.rar, r01, r02, r03 and so on (this is easy)</li>
  <li><p>somefile01.rar, somefile02.rar, somefile03.rar</p></li>
  <li><p>.001, .002, 003 and so on.</p></li>
  </ul>
  
  <p>If i point Unrar or SevenZipSharp to wrong archive it will unpack that particular archive and leave rest unpacked. So i have to point the right one (unless i am doing something wrong). </p>
  
  <p>What would be the best way to check for that? For now i am checking if there are more then one .rar files inside directory then if so i check for 01.rar. If there's only one and .rar and couple of r01 then i get .rar but this seems a bit wrong. </p>
  
  <p>Is there a way to make SevenZip or Unrar to actually unpack whole multi rar pack just by pointing to any .rar file? or .001 ? </p>
  
  <p>MadBoy  </p>
  
  <p>EDIT:</p>
  
  <p>I tried to use following code to get information as suggested in one answer but it fails to deliver promised information. extr.ArchiveFileData returns 0 for zip, and 32 for any provided rar whether it's rar or r01. </p>
  
  <pre><code>        using (SevenZipExtractor extr = new SevenZipExtractor(fileName)) {
  
              foreach (var var in  extr.ArchiveProperties) {
                  string attributes = var.Name;
                  object test = var.Value;
                  if (test == null) {
                      test = "THIS";
                  } 
                  MessageBox.Show(attributes.ToString(), test.ToString());
              }
                              foreach (var var in extr.ArchiveFileData) {
                 MessageBox.Show(var.Attributes.ToString());
              }
          }
  </code></pre>