Page 1 of 1

Zip / Pack Empty Folders

Posted: Mon Oct 10, 2016 9:18 am
by RomaRS
Hello all,
i am struggling to create a task that can zip a Folder with a 1 zip file and inside the folder exist many empty folders and some of them have also files.

i tried everything , can someone help with this one

******************
Folder1 (this one should be zipped with Folder1.zip)
+++import1(Folder)
+++Import2(Folder)
+++import500(Folder)
+++++++FileTest.txt (File)
+++++++FileTest2.txt (File)
+++import2000(Folder)

************************

what i did
i loop by folder then
change folder path
then pack
but in result i get inside zip file only the folder that have a file inside
and i need inside the zip all the list with empty folders

Thank you

Re: Zip / Pack Empty Folders

Posted: Tue Oct 11, 2016 10:04 am
by Oleg
Unfortunately Pack Files action ignores empty folders.
But you can use free command line utility to pack folders as you wish.
For example 7-zip. It supports ZIP format too.
To pack the folder with files and empty folders use the command:
  • 7z.exe a -tzip <ZIP_name> <Folder_Name>

Re: Zip / Pack Empty Folders

Posted: Wed Oct 12, 2016 1:16 pm
by RomaRS
Perfect Oleg,

it worked using command line

thx