How to unzip a zipped folder using UiPath

0 votes
I want to Unzip a Zipped folder using UiPath. Any please tell how can I do that?
Mar 8, 2019 in RPA by Akanksha
12,444 views

3 answers to this question.

+1 vote
Best answer

Hi Akansha, to unzip a zipper folder using UiPath follow the steps one by one:

1. First create a Sequence and 2 variables zipPath and extractPath. Then assign the default value of zipPath as the path of Zipped Folder and for extractPath, give path value where you want to upzip the folder.

2. Then call activity Invoke Method and in Target Type select System.IO.Compression.ZipFile. And give MethodName as ExtractToDirectory. 

3. Now under Properties for Invoke Method set the Parameters using zipPath & extractPath.

Finally run the automation you will be able to get the unzipped folder into desired directory.

answered Mar 8, 2019 by Anvi
• 14,150 points

selected May 6, 2019 by Abha
0 votes

Hi,

When i try to add System.IO.Compression.ZipFile. its wont displaying

answered May 6, 2019 by saranya

Hi Saranya, I checked for your error and you are right that System.IO.Compression.ZipFile is not available as a Target option in Invoke method. The probable reason which I can think of is that either it's been deprecated or removed from the System.IO.Compression collection. 

So to resolve this issue you can simply ditch the invoke method and instead install the UiPathTeam.ArchiveLib.Activity package to use Compress Archive and Expand Archive activities from it. You can follow these steps to expand (unzip) a compressed folder (zip file):

1. Click on Manage Packages and navigate to Go! section. Now search for UiPathTeam.ArchiveLib.Activity and click on this package to install it. Install and Save it.

2. Now in activities search for Expand Archive and drag it to the sequence. In the Properties, set DestinationPath as the path where you want the unzipped files and set Path as the path of zipped file/folder. 

Now, just run the program and you will have your unzipped files. Please do let me know if this works for you.

yes, its working
0 votes

Hi, Both the solutions didn't work for me, However, I found another solution which worked like charm.

You can use BalaReva.Externals.Activities Package and use Unzip activity. You can get it from ManagePackages Section and can install it.

Do let me know if you face any issue. :)

Thanks

K.G. Maheshwari

answered Jun 21, 2019 by K. G. Maheshwari

Hi K.G.Maheshwari, I know about this BalaReva Package, though I avoided using it because its a 3rd party package and the other 2 are working fine for me. But, glad that you shared this package too.

UiPathTeam.ArchiveLib.Activity is an official UiPath package, which can be used to resolve this issue. Other 3rd party packages also works fine. 

Related Questions In RPA

0 votes
4 answers

How to find the sum of 2 columns of an excel and display it in a 3rd column using UIPATH?

These are the steps to add two ...READ MORE

answered Aug 2, 2019 in RPA by Shivi Singhal
14,795 views
0 votes
1 answer

How to take screenshot of a webpage using UIPath?

Hi Prakash, to take the screenshot from ...READ MORE

answered Mar 8, 2019 in RPA by Abha
• 28,140 points
23,169 views
0 votes
1 answer

How to check if a string exists in datatable using UiPath?

Hi @Ravi, to check whether a string ...READ MORE

answered Mar 19, 2019 in RPA by Anvi
• 14,150 points
17,824 views
0 votes
1 answer

How to extract numbers from a web page using Uipath ?

Hi, you can simply use GetText and Message ...READ MORE

answered Aug 19, 2019 in RPA by Abha
• 28,140 points
2,385 views
0 votes
1 answer

Automation in Uipath

you can use the Database package for connecting  ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
1,608 views
0 votes
1 answer

UiPath vs Workfusion

in WorkFusion, you can create a script ...READ MORE

answered Apr 17, 2018 in RPA by wrecker
• 3,110 points
2,718 views
0 votes
1 answer

Surface automation in rpa?

Surface automation is a visual automation that is done using ...READ MORE

answered Apr 20, 2018 in RPA by wrecker
• 3,110 points
1,805 views
0 votes
1 answer

Private Chrome window open UiPath

To open the browser in private mode, ...READ MORE

answered Apr 25, 2018 in RPA by wrecker
• 3,110 points
1,480 views
+3 votes
1 answer

How to extract data from a website and save it to excel using UiPath?

Hi Piyush, if you want to extract ...READ MORE

answered Mar 8, 2019 in RPA by Anvi
• 14,150 points
22,450 views
0 votes
1 answer

How to extract specific type of files from a directory using UiPath?

Hey @Avani, if you want to extract ...READ MORE

answered Mar 14, 2019 in RPA by Anvi
• 14,150 points
10,055 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP