How to loop zip folder

I want to zip folder in path New Folder as below. (output = zip folder in highlight)

image

Please guide me about it.

Hi @fairymemay

Please try this,

zipArray- array

zipArray = Directory.getfiles(“yourfolderpath”,*.zip")

Thanks

@prasath_S no, I want output​ zip folder​ as below.
input
folder AB , AC , AS34

output
AB.zip , AC.zip , AS34.zip

Please suggest me about it.

So you want to zip all these folders right??

Use compress/Zip files activity available in under System Activities.

using this you can zip files/ folders/multiple files and multiple folders.

https://docs.uipath.com/activities/docs/compress-files

@prasath17 1 folder to 1 Zip
EX. folder AB —> AB.zip
folder AC —> AC.zip

@fairymemay - Please check this…

For Each Argument type is string.

Note: Replace MoveFiles with your FolderName

My Output

image

Hope this helps…

1 Like

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