0
I checked the cod by removing destinationDir.. (It was not compiling until then)
The following code is working for me and a test zip file was unzipped.
DirectoryInfo di = new DirectoryInfo(@"C:\Temp\");
foreach (FileInfo fi in di.GetFiles("*.zip"))
{
String file = fi.ToString();
var destinationPath = @"C:\Temp\AppName\";
if (!Directory.Exists(destinationPath))
Directory.CreateDirectory(destinationPath);
Shell sh = new Shell();
Folder destFlder = sh.NameSpace(destinationPath);
Folder srcFlder = sh.NameSpace(fi.FullName);
foreach (FolderItem F in srcFlder.Items())
{
destFlder.CopyHere(F, null);
}
}
Can you attach the zip file if problem persists?