@Arvin_Gabriel_Mari_A
@badita
@vvaidya
@aksh1yadav
I have folder as “sample” inside that i have no.of sub folder.
I need to compress all the sub folder into one zip file ( Zip file format is “Source EOD dd-mm.zip” )
Can someone help to achieve this
1 Like
I can able to read all the sub folders but i am not able to zip those sub folders into one Zipfile
Syntax to use zip folder ==> ZipFile.CreateFromDirectory(sourcepath,zipPath,CompressionLevel.Fastest)
Is this right way i am using to zip those folders or any other way to do this
please suggest me how to do this
Thanks in advance
Jothyprasanth M
1 Like
vvaidya
(Vinay Vaidya)
June 6, 2017, 3:34pm
3
ZipFile.CreateFromDirectory should work.
Open your xaml in notepad and add below manually.
[/uploads/default/original/2X/8/8116f8ee3b8c0b0645367f6735018b1ea60bee93.png]
[/uploads/default/original/2X/f/f1e0ee1ebd527d338208f547a858d0b53dd6b83d.png]
[/uploads/default/original/2X/6/6a4dcb4ecc6644c6d86469b2ab2bf9ef10a5ab18.png]
vvaidya
(Vinay Vaidya)
June 6, 2017, 3:43pm
4
<AssemblyReference>System.IO.Compression.FileSystem</AssemblyReference>
CompressFolders.xaml (5.96 KB)
3 Likes
Its working fine Thatnk you for giving me the solution
MGDEL
(UIpath Learner)
June 13, 2017, 11:16am
6
Is it possible to create zipfile using password too?
Is it possible to create Zip file using password?
beesheep
(Eduardo Bernabe Sacahui Diaz)
July 24, 2017, 5:21pm
8
With System.IO.Compression you can not set a password, acording to this:
1 Like
Hi @vvaidya and @jothyprasanth.m
When I tried the solution XMAL it is working fine , but once I linked it with my solution , same error occurred.
I need to add only Assembly or other below 3 lines as well
[/uploads/default/original/2X/8/8116f8ee3b8c0b0645367f6735018b1ea60bee93.png]
[/uploads/default/original/2X/f/f1e0ee1ebd527d338208f547a858d0b53dd6b83d.png]
[/uploads/default/original/2X/6/6a4dcb4ecc6644c6d86469b2ab2bf9ef10a5ab18.png]
Sharanabasava
(Sharanabasava Kallurmath)
April 20, 2018, 11:18am
10
Hi vvaidya,
How to create multiple folder into a single file, Thanks
1 Like
balupad14
(Balamurugan)
May 14, 2018, 2:46pm
11
Hi @Sharanabasava ,
I thank to you to initiate me to give new provision in the zip file activity. Now you can able to do zip with multiple folders.
Hi Guys,
I have successfully uploaded Zip and UnZip in UiPath Go.This package contains the below activities .
Zip Activity
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.
Unzip Activity
It is the act of extracting the files from a zipped single file (with password) to a specific folder.
https://go.uipath.…
Regards
Balamurugan
2 Likes