What is the best way to unzip files to another folder?
Kindly have a view on this
I have successfully uploaded Zip and UnZip in UiPath Go.This package contains the below activities .
It is a popular archive format widely using in Internet. ZIP files are data containers. They store one or several files and folders in the compressed form as a single file. Password is optional. It compresses in “zip” and “rar” format.
It is the act of extracting the files from a zipped single file (with password) to a specific folder.
I have seen people mention this package, but isn’t it third party? Is it safe to use this? I am trying to find a solution for my client so I don’t want to use it if it’s not necessary…Is there a way to unzip without adding a package?
Fine here you go
I’m opening your workflow and I get this warning 'ZipFile' does not have a public static method named 'ExtractToDirectory' matching the parameter types, generic type arguments, and generic type constraints supplied to InvokeMethod.
Basically you’re trying to call ZipFile.ExtracttoDirectory() instead of ZipFile.ExtractToDirectory(zipFile, extractPath)
After setting the parameters (zipPath, extractPath) for the
ExtractToDirectory method it will work.
Aren’t you getting the same?
But one thing is the custom activity suggested in the previous comment is safe and easy to use
You can use them
Were we able to process them
Kindly let know for any queries or clarification
Check this xaml, it will extract files from a zip and place it in a directory. then from that directory it will get all the files.
UnzipFilesAndGetFiles.xaml (8.2 KB)
For community sake - another topic regarding a similar question.
I found Invoke Power Shell activity very useful when working with zipped files. The good thing is there is no need to install any packages as it is a part of CoreActivities. All you need to do is to:
With the following parameters:
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.