Zip and Unzip files


#1

This Nuget package has two activties.

  1. Zip - It can zip Folders.
    Eg: SourceFilePath: “D:\Folder”
    DestinationFilePath: “D:\Folder.zip”
  2. UnZip- It can extract Files from folders.
    Eg: SourceFilePath: “D:\Folder.zip”
    DestinationFilePath: “D:\Folder”

Activity code.zip (24.5 KB)
Code.zip (33.3 KB)
ZipAndUnzipFile.Activities.1.0.0.nupkg (4.6 KB)


Unzip Files using invoke method
Zipping files
Compress and zip each individual folders
How to know the File Type
Email Challenge: This is similar, but unlike other Topics
Zip and unzip a file in uipath
How to compress and save in a specific folder
#2

i have downloaded the NuGet package and placed it in the packages folder. Yet, it fails to work. Kindly assist.


#3

@Amitha Please install the package from studio in order to use the activity. Go through the below link for more information: https://studio.uipath.com/v2017.1/docs/managing-activities-packages


#4

Hello @Priya_Dubey I installed the package and trying to using the zip activity but i got this error please advise
image


#5

Hello,
Please mention the destination path as a folder path. As i can see in the screenshot that you have given destination folder as “C:\Users\ks1853332\Desktop”. Please try with something like below:
“C:\Users\ks1853332\Desktop\Folder1”


#6

Hello,
When I run “Un zip file” activity, it has thrown this exception: “End of Central Directory record could not be found”, I don’t know what is mean. This is the my DestinationFilePath: “D:\RPA\ITS\Files\Datas” and SourceFilePath: “D:\RPA\ITS\Files\Datas\123.rar”, please advise

1515060297(1)


How to unzip .gz file
#7

Hi, nice package.

I have a “.gz” compressed file to uncompress. any package more generic for different descompression formats?


#8

Does this handle Folders as well as Files?


#9

Hi
Currently this package handles folders only. However in case you need to zip a file, then you can get this working by using a temporary folder.

For zipping:

  1. Create a temporary folder
  2. Move file to the folder
  3. Use the activity to Zip the folder

For Unzipping:

  1. Unzip the archive folder
  2. Move the file from temp folder to required location.

#10

do you have any example of ziping ? is not working for me :C


#11

Hi @naotosx,

The below activity is having the zip and unzip files with password production. It will help you.

Before go to the example , please install this package.

Regards
Balamurugan.S