unzip rar 7z winzip zip
if (ExtractMode == 'zip' || ExtractMode == 'rar')
zip.ExtractToDirectory(Path, ExtractTarget, NewName, ExtractMode);
//zip.ExtractToDirectory(Path, ExtractTarget, NewName, ExtractMode);
//archive.Extract(Path, ExtractTarget);
}
else
{
if (RemoveTarget!= null)
RemoveFile(Path, RemoveTarget);
if (!string.IsNullOrEmpty(NewName))
// Set the new name
try
{
string dir = Directory.GetCurrentDirectory();
Related links:
Comments