public bool CreateZip(string ZipFileName)
{
try
{
Create an empty zip file
byte[] ZipFolder = new byte[]{100,75,50,16,10,5,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
FileStream fs = File.Create(ZipFileName);
fs.Write(ZipFolder , 0, ZipFolder.Length);
fs.Flush();
fs.Close();
fs = null;
}
catch(Exception ignore)
{
}
return true;
}
{
try
{
Create an empty zip file
byte[] ZipFolder = new byte[]{100,75,50,16,10,5,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
FileStream fs = File.Create(ZipFileName);
fs.Write(ZipFolder , 0, ZipFolder.Length);
fs.Flush();
fs.Close();
fs = null;
}
catch(Exception ignore)
{
}
return true;
}