How to Zip all the files in a folder?

I have to zip all the files as mentioned in the screenshot


My ui path studio is restricted to download any other" Zip Packages"?
Is there any option other than this

Thanks in advance

Do you have this activity in your studio??

image

our company using 2018.04.06

@rsr.chandu - Please try this in the invoke code…

image

ZipFile.CreateFromDirectory("C:\Users\giris\Downloads\output\","C:\Users\giris\Downloads\Final.zip")

if you have path stored in the variable, then you have to pass that in the EditArguments as in/out, ie. Say StrPath ==> in/out → StrPath

If there is an error identifying the command, import system.io.compression as shown below…

image

Screenshot 2021-04-22 194236

Added System.IO.Compression in imports also

@rsr.chandu - hmm may be because of the vb version…can you try this??

System.IO.Compression.ZipFile.CreateFromDirectory

I am using old version that is the reason i am getting like this
Thankyou for your help

@rsr.chandu - Glad the issue is resolved. Could you please let us know, how you were able to solve it?

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.