Add in new collection if files size sum is 20 MB

Other way to do different names is add number to the file name. Then before for each loop create var:

Int_FileZip = 1

And inside else ( in the right side of if activity) place this values:

  Str_fileZip = 
  "zip_"+Int_FileZip.toString+".zip"
  Archive this collection to zip.
  Clear collection ( new list(of String))
  Int_Size = int_FileSize
  add path to cleared collection
  Int_FileZip = Int_FileZip+1

In that case zip files will have shorter name and it would be zip_1.zip, zip_2.zip etc. :slight_smile:

If you place sth like this:
Str_fileZip =
“C:/Folder/zip_”+Int_FileZip.toString+“.zip”

It will surely work as destination path of the newly created archive path.

1 Like