Question

1
Replies
91
Views
AdolfoS1 Member since 2018 5 posts
Sykes Latin America S.A.
Posted: 1 year ago
Last activity: 1 year 11 months ago
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
Share this page LinkedIn