I am backing up my Steam games in RAR files The point is to verify offline L4D2 game
I wish to read each entry in the rar file then check to see if it exists
but I am getting this error
System.IO.InvalidDataException: Split or spanned archives are not supported. at System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()
using System;
using System.IO;
using System.IO.Compression;
private void btn_ReadfromZipfile_Click(object sender, EventArgs e)
{
DialogResult result = file.ShowDialog();
if (result == DialogResult.OK)
{
string txtArchiveName = Path.GetFullPath(Path.Combine(Application.StartupPath, file.FileName));
using (ZipArchive zip = ZipFile.OpenRead(txtArchiveName))
{
// Loop through the archive's files.
foreach (ZipArchiveEntry entry in zip.Entries)
{
// if(zip_entry.);
listBox1.SelectedItems.Add(entry.FullName);
CheckFileExists(entry.FullName);
}
}
}
}
Am changing to ZIP files and using this Ionic
This works ... just have redone 555 games Thanks for your Answers