I have to split one zip archive into mutiple smaller ones because it’s to large to attach it on outlook mail.
Can this be done with any activity or invoke code?
I try to invoke this code, but i get this error. ‘)’ expected.
int segmentsCreated ;
using (ZipFile zip = New ZipFile())
{
zip.UseUnicode= True; // utf-8
zip.AddDirectory(@“MyDocuments\ProjectX”);
zip.Comment = "This zip was created at " + System.DateTime.Now.ToString(“G”) ;
zip.MaxOutputSegmentSize = 100*1024 ; // 100k segments
zip.Save(“MyFiles.zip”);
int segmentsCreated ;
using (ZipFile zip = New ZipFile())
{
zip.UseUnicode= True; // utf-8
zip.AddDirectory(@“MyDocuments\ProjectX”);
zip.Comment = "This zip was created at " + System.DateTime.Now.ToString(“dd”);
zip.MaxOutputSegmentSize = 100*1024 ; // 100k segments
zip.Save(“MyFiles.zip”);
Hello Andrei, I have tried the code and encountered the same error as you did, I would like to know have you solved the problem and finally got a worked code? So much appreciated if you may tell me, thank you!