ZipFiles - Forum

Forum Navigation
You need to log in to create posts and topics.

ZipFiles

Hello,

I'm having trouble with the ZipFile syntax

I have a file called "license.txt" located at:
[PubDir]license_Master\license.txt

I want to zip only this file "license.txt" in a secure zip (AES_256) & place it at:
[PubDir]

Then unzip the txt file add or remove text then put it back in the secure zip

No matter what I try The zip still contains the file within the folder "license_Master"

I guess it must be something to do with the "exclusion list" but it is the syntax that I cannot get right

Here is my last attempt
ZipFiles "[PubDir]license.zip" "[PubDir]" "[PubDir]license_Master\license.txt[#13]" "license_Master[#13]" "0" "mypassword" "AES_256" "[Result]"

Any help would be really appreciated, thanks for looking

PS:

the zipfiles properties window has spelling mistakes relating to "Wildcards" see image

Uploaded files:
  • You need to login to have access to uploads.

Hello,

Try this (untested because I am not on my system)

ZipFiles "[PubDir]license.zip" "[PubDir]license_Master\" "[PubDir]license_Master\license.txt[#13]" "" "0" "mypassword" "AES_256" "[Result]"

The basedir should be the dir which should not go into the zip.

Thanks for reporting the typo. Will be corrected in the next release.

Regards

Hans-Peter

Moved to the right forum.

;-)

Thank you  so much Hans-Peter... it works perfectly !

I guess, that I will have to firstly, take a good look at my errors, to see where I was going wrong

I wasted so much time on this !

 

Thanks again !

Hello,

glad to hear that it works for you.

That is programming. Debugging is part of the job. ;-)

Regards

Hans-Peter

CN_Iceman has reacted to this post.
CN_Iceman
Quote from HPW on October 3, 2021, 6:58 am

That is programming. Debugging is part of the job. ;-)

Hans-Peter

You don't know how right you are my friend... or maybe you do. ;-)
It's a phrase that stuck with me many years ago.

Greetings.