Question

1
Replies
109
Views
Close popover
Adolfo Sanchez (AdolfoS1)
Sykes Latin America S.A.

Sykes Latin America S.A.
CR
AdolfoS1 Member since 2018 5 posts
Sykes Latin America S.A.
Posted: October 2, 2018
Last activity: October 3, 2018
Closed

Unzip Script is not working

I am trying to buidl and RDA application using Pega Studio

As part of the app I need to unzip a file to perform certain operations on it.

I am using the ICSharpCode.SharpZipLib.Zip library to create my solution.

To test the solution I created a file called t.zip that originally contained a t.txt file, the script seemed to work fine.

I changed the t.txt file with an Excel file, within the t.zip file but the script always create an empty t.txt file on the TargetDirectory.

The app doesn't show any error.

Here is the code I am using:

public void unzip(string TargetDir, string FileName)
{
try{
FastZip fs=new FastZip();
fs.ExtractZip(FileName,TargetDir,null);
}
catch(Exception ex){
MessageBox.Show(string.Format("Exception during processing {0}", ex));
}
}
***Moderator Edit-Vidyaranjan: Updated Platform Capability***
Robotic Process Automation
Moderation Team has archived post