Code:
private void zip(string[] args)
{
//Create an zip file to read any file
byte[] emptyzip = new byte[] { 80, 75, 5, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
FileStream fls = File.Create(args[1]);
fls.Write(emptyzip, 0, emptyzip.Length);
fls.Flush();
fls.Close();
fls = null;l
Shell32.ShellClass fs= new Shell32.ShellClass();
Shell32.Folder SrcFlder = fs.NameSpace(args[0]);
Shell32.Folder DestFlder = fs.NameSpace(args[1]);
Shell32.FolderItems items = SrcFlder.Items();
DestFlder.CopyHere(items, 0);
System.Threading.Thread.Sleep(500);
}
string[] ster = new string[2];
ster[0] = zipFolderPath;
str[1] = _startUpPath + "\\" + "Attachment.zip";
zip(ster);
Bookmarks