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 in RPA by Akanksha
259 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+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 by Anvi
• 5,960 points

selected May 6 by Abha
0 votes

Hi,

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

answered May 6 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.

Related Questions In RPA

0 votes
2 answers

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

1. First use the excel application scope ...READ MORE

answered May 16 in RPA by Venkat
• 260 points
1,157 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 in RPA by Abha
• 6,370 points
96 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 18 in RPA by Anvi
• 5,960 points
213 views
0 votes
1 answer

How to select an item in UiPath that starts with a string

use a wildcard in selector. make sure that ...READ MORE

answered May 21, 2018 in RPA by wrecker
• 3,090 points
757 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,090 points
190 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,090 points
776 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,090 points
263 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,090 points
249 views
0 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 in RPA by Anvi
• 5,960 points
479 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 13 in RPA by Anvi
• 5,960 points
338 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.