I use terminal commands on Mac e Win. On Win I installed 7zip.
Mac
LAUNCH EXTERNAL PROCESS("zip -r "+$pathDocumentSource+”
“+pathDocumentDest;$t_input;$t_output;$t_error)
Win
$pathzip:=Get 4D folder(Current Resources folder)
LAUNCH EXTERNAL PROCESS(pathzip+”7-zip\\7z a -tzip “+$pathDocumentSource+”
“+pathDocumentDest;$t_input;$t_output;$t_error)
Andrea
-------------------------------------------------------------------
Alfanet srl [email protected]
viale Europa, 62 http://www.alfanet.it/
00144 Rome
tel. +39 06 5924665
fax +39 06 5923352
> Il giorno 28 ott 2016, alle ore 11:06, Arnaud de Montard <[email protected]> ha
> scritto:
>
>
>> Le 28 oct. 2016 à 06:05, Steve Makohin <[email protected]> a écrit :
>>
>> How do you zip a directory (and its contents) using 4D v14 on Windows,
>> hopefully without the need to get a 3rd-party plugin?
>
> I think you can't without a 3rd party something: library, component, plugin…
>
> With "4D only" you can compress a blob but it's proprietary. In 4d.app there
> is something (/contents/Native components/Zip.bundle - to compress backup?),
> but no commands to use it.
>
> I use Miyako's 7z:
> <http://sources.4d.com/trac/4d_keisuke/wiki/Components/7-Zip>
>
> --
> Arnaud de Montard
>
>
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> FAQ: http://lists.4d.com/faqnug.html
> Archive: http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub: mailto:[email protected]
> **********************************************************************
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************