Hi!
My Problem is : The Folder which was applied to customized icons using desktop.ini.But after compression the folder icons are not displaying...
In my Archive code first i used Ionic.Zip.ZipFile which is a third party DLL to compress(zip) the folder.In this case it works perfectly,i mean , even "after extraction(unzip) folder icons has been displaying" but the only drawback which i facing is, if the directory size >3GB it splits the the zip files into many based on the size given.See the Below code :
ZipPassword = Membership.GeneratePassword(9, 5);
float size = 1024 * 1024 * 1024;
string ZipName = DestinationFolder;
using (var zip = new Ionic.Zip.ZipFile())
{
zip.Password = ZipPassword;
zip.Encryption = Ionic.Zip.EncryptionAlgorithm.WinZipAes256;
zip.AddDirectory(DestinationFolder);
zip.CompressionMethod = Ionic.Zip.CompressionMethod.Deflate;
zip.CompressionLevel = Ionic.Zlib.CompressionLevel.BestCompression;
zip.UseZip64WhenSaving = Zip64Option.Always;
zip.MaxOutputSegmentSize = (int)size;
zip.Save(ZipName + "s.zip");
}
Hence instead i moved to ICSharpCode SharpZipLib for compression.In this case I'm unable to see the related folder icons.See the below code
FastZip z = new FastZip();
z.RestoreAttributesOnExtract = true;
z.CreateEmptyDirectories = true;
z.Password = ZipPassword;
z.CreateZip(DesFolder+".zip", DesFolder, true, "");
After Extracted(Unzip),the desktop.ini & .ico files are existing but not working.
Please help me...
Thanks in Advance... :-)