# Zip / Unzip options within an APP?

**URL:** <https://clarionhub.com/t/zip-unzip-options-within-an-app/6805>\
**Category:** questions\
**Tags:** zip\
**Created:** [November 25, 2023, 11:43pm UTC](https://clarionhub.com/t/zip-unzip-options-within-an-app/6805 "2023-11-25T23:43:48Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![jslarve](https://clarionhub.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jslarve](https://clarionhub.com/u/jslarve)\
**Post date:** [August 15, 2024, 10:15pm UTC](https://clarionhub.com/t/zip-unzip-options-within-an-app/6805/21 "2024-08-15T22:15:40Z")

</div>

If your app is not ABC, you might need to set ABCLinkMode and ABCDLLMode.

 ![image](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/7/70bf984219b042de6f9eff2d94ec47a95b126484.png)

It gets a little more complicated for Multi-DLL, but if you just have an EXE (and the switches aren’t already set), try setting the switches in your project

 ![image](https://clarionhub-uploads.s3.eu-north-1.amazonaws.com/original/2X/9/9230a7817e7a32184fdf68a731eacd41911ec039.png)

---

<div class="post-metadata">

**Author:** ![mrknowles](https://clarionhub.com/user_avatar/clarionhub.com/mrknowles/32/5200_2.png) [@mrknowles](https://clarionhub.com/u/mrknowles)\
**Post date:** [August 15, 2024, 10:41pm UTC](https://clarionhub.com/t/zip-unzip-options-within-an-app/6805/22 "2024-08-15T22:41:28Z")

</div>

My project is ABC, also Multi-DLL.

---

<div class="post-metadata">

**Author:** ![Marcelo\_Sanseau](https://clarionhub.com/user_avatar/clarionhub.com/marcelo_sanseau/32/2929_2.png) [@Marcelo\_Sanseau](https://clarionhub.com/u/Marcelo_Sanseau)\
**Post date:** [August 16, 2024, 12:05am UTC](https://clarionhub.com/t/zip-unzip-options-within-an-app/6805/23 "2024-08-16T00:05:51Z")

</div>

For tomorrow I can prepare an example. I’m going to make sure that it compile and run as abc or not. regards

---

<div class="post-metadata">

**Author:** ![Marcelo\_Sanseau](https://clarionhub.com/user_avatar/clarionhub.com/marcelo_sanseau/32/2929_2.png) [@Marcelo\_Sanseau](https://clarionhub.com/u/Marcelo_Sanseau)\
**Post date:** [August 16, 2024, 3:40pm UTC](https://clarionhub.com/t/zip-unzip-options-within-an-app/6805/24 "2024-08-16T15:40:39Z")

</div>

[ZIP.ZIP](https://clarionhub.com/uploads/short-url/f7H5PN7YNtvBLxw5Gg45qXqwDcK.ZIP) (5,9 KB)

This is taken from a working program. Should work. If you have problems send pm.

---

<div class="post-metadata">

**Author:** ![mrknowles](https://clarionhub.com/user_avatar/clarionhub.com/mrknowles/32/5200_2.png) [@mrknowles](https://clarionhub.com/u/mrknowles)\
**Post date:** [August 20, 2024, 3:03pm UTC](https://clarionhub.com/t/zip-unzip-options-within-an-app/6805/25 "2024-08-20T15:03:11Z")

</div>

The code creates a zip archive file with a file size, but the archive is empty.  
Also, the program throws an error when it tries to archive a file that is currently open. Is there a way to archive a file even if it is currently open?

---

<div class="post-metadata">

**Author:** ![Marcelo\_Sanseau](https://clarionhub.com/user_avatar/clarionhub.com/marcelo_sanseau/32/2929_2.png) [@Marcelo\_Sanseau](https://clarionhub.com/u/Marcelo_Sanseau)\
**Post date:** [August 21, 2024, 1:54am UTC](https://clarionhub.com/t/zip-unzip-options-within-an-app/6805/26 "2024-08-21T01:54:10Z")

</div>

well, here it works ok. Send me your code to check it.  
Open files, I think that needs special treatment. Perhaps it depends on the share mode of then open file. I didn’t need to zip open files so I haven’t analyzed it.

---

<div class="post-metadata">

**Author:** ![leroyschulz](https://clarionhub.com/user_avatar/clarionhub.com/leroyschulz/32/6200_2.png) [@leroyschulz](https://clarionhub.com/u/leroyschulz)\
**Post date:** [August 29, 2024, 6:00pm UTC](https://clarionhub.com/t/zip-unzip-options-within-an-app/6805/27 "2024-08-29T18:00:46Z")

</div>

> is there a way to archive a file even if it is currently open?

Try making a copy of the open file and archiving the copy?

---

<div class="post-metadata">

**Author:** ![FoucheRabie](https://clarionhub.com/letter_avatar_proxy/v4/letter/f/7cd45c/32.png) [@FoucheRabie](https://clarionhub.com/u/FoucheRabie)\
**Post date:** [September 10, 2025, 11:02am UTC](https://clarionhub.com/t/zip-unzip-options-within-an-app/6805/28 "2025-09-10T11:02:13Z")

</div>

Hi Everyone,  
Yes, my test also. “windows explorer” shows zip file empty. 😥

[ZipTest.zip](https://clarionhub.com/uploads/short-url/sNFfilSHAC74iQkD4xfIOMWnwFC.zip) (236.1 KB)

Attached my test APP.  
Hope someone with insight can assist.

Clarion 11.1  
(Also with StringTheory, just for debuging)

F

---

<div class="post-metadata">

**Author:** ![Mark\_Sarson](https://clarionhub.com/user_avatar/clarionhub.com/mark_sarson/32/6132_2.png) [@Mark\_Sarson](https://clarionhub.com/u/Mark_Sarson)\
**Post date:** [September 11, 2025, 9:59am UTC](https://clarionhub.com/t/zip-unzip-options-within-an-app/6805/29 "2025-09-11T09:59:02Z")

</div>

I’ve fixed the class and your demo to work properly. I added ODS to the class as well for better tracing. The main issue was the class was using the full path and name of the pdf being added, but the function just expects the name with no path.

I updated the routine in your code to make sure the path to the PDF files has a trailing   
[ZipTest.zip](https://clarionhub.com/uploads/short-url/o2dxo7hi3CQoyUTxnMMD3ge9dBd.zip) (157.4 KB)

I hope that helps  
Mark

---

<div class="post-metadata">

**Author:** ![Marius\_Nel](https://clarionhub.com/user_avatar/clarionhub.com/marius_nel/32/2309_2.png) [@Marius\_Nel](https://clarionhub.com/u/Marius_Nel)\
**Post date:** [September 11, 2025, 10:16am UTC](https://clarionhub.com/t/zip-unzip-options-within-an-app/6805/30 "2025-09-11T10:16:35Z")

</div>

ZFile = ‘C:\TEMP\ZipFiles\Tiras-’& random(1000,99999) &‘.zip’ - Need full path name

---

<div class="post-metadata">

**Author:** ![FoucheRabie](https://clarionhub.com/letter_avatar_proxy/v4/letter/f/7cd45c/32.png) [@FoucheRabie](https://clarionhub.com/u/FoucheRabie)\
**Post date:** [September 11, 2025, 10:41am UTC](https://clarionhub.com/t/zip-unzip-options-within-an-app/6805/31 "2025-09-11T10:41:05Z")

</div>

Thank you VERY MUCH Mark.

That was kind of you. Works well now.  
Tracing helps as well.

Any help on the UNZIPPING? 🥺🙏

F

---

<div class="post-metadata">

**Author:** ![Marius\_Nel](https://clarionhub.com/user_avatar/clarionhub.com/marius_nel/32/2309_2.png) [@Marius\_Nel](https://clarionhub.com/u/Marius_Nel)\
**Post date:** [September 11, 2025, 10:55am UTC](https://clarionhub.com/t/zip-unzip-options-within-an-app/6805/32 "2025-09-11T10:55:57Z")

</div>

Can you also manipulate/display a progress bar for big files @Mark , please? 🥺

[Previous page](https://clarionhub.com/t/zip-unzip-options-within-an-app/6805.md?page=1)
