Update files in zip file from subfolder in same folder as zip file, using commandline (or other)
Thread poster: Samuel Murray
Samuel Murray
Samuel Murray  Identity Verified
Netherlands
Local time: 21:33
Member (2006)
English to Afrikaans
+ ...
Sep 5, 2017

Hello everyone

I'm using Windows 7.

I'm translating xlf.xlz files in OmegaT, but since OmegaT can't unzip and re-sup the files itself, I have to unzip the xlf.xlz files first, translate them, and then update the original xlf.xlz file with the update content. This is fine if it's just one or two files (I use 7-zip's GUI), but I now have a job with 1000 such files.

So, for example, I have an archive named e.g. "abc.xlf.xlz", and inside the archive are two fi
... See more
Hello everyone

I'm using Windows 7.

I'm translating xlf.xlz files in OmegaT, but since OmegaT can't unzip and re-sup the files itself, I have to unzip the xlf.xlz files first, translate them, and then update the original xlf.xlz file with the update content. This is fine if it's just one or two files (I use 7-zip's GUI), but I now have a job with 1000 such files.

So, for example, I have an archive named e.g. "abc.xlf.xlz", and inside the archive are two files named content.xlf and original.skl. I've unzipped the files in the archive to a subfolder called "abc.xlf". The archive abc.xlf.xlz and the subfolder "abc.xlf" are siblings, i.e. they're both in the same parent folder (and inside the subfolder "abc.xlf" are two files, named content.xlf and original.skl).

After I've edited the file content.xlf in OmegaT, I want to add the new version of content.xlf into the original zip file abc.xlf.xlz. Do you know of a zip program with a commandline option that would allow for that?

I do not want to create a new zip file. I need to update the original zip file. The new version of content.xlf must overwrite the old version of content.xlf inside abc.xlf.xlz.

Thanks
Samuel

== Added:

It doesn't have to be commandline. If you know of a GUI program that will allow me to do this *and* process multiple such tasks in one go, i.e. without having to perform the operation separately for each zip file, then I'd be happy to hear about it.

[Edited at 2017-09-06 06:12 GMT]
Collapse


 
Otha Nash
Otha Nash
United States
Local time: 15:33
Arabic to English
+ ...
7-Zip command line Sep 5, 2017

7-Zip has a command line version. You can download it here: http://www.7-zip.org/a/7za920.zip
The user guide for the command line version can be found here: https://sevenzip.osdn.jp/chm/cmdline/


 
Samuel Murray
Samuel Murray  Identity Verified
Netherlands
Local time: 21:33
Member (2006)
English to Afrikaans
+ ...
TOPIC STARTER
Can't do it with 7-zip Sep 5, 2017

Otha Nash wrote:
7-Zip has a command line version.


Yes, thanks, but what is the syntax to achieve what I'm trying to achieve?


 
CafeTran Training (X)
CafeTran Training (X)
Netherlands
Local time: 21:33
WinZip Sep 6, 2017

Does this help?

http://www.memecode.com/docs/winzip.html

-f or -u

Or this:

https://www.lifewire.com/linux-commands-4102690

How To Add New Files To An Existing Zipped Archive
If you want to add new files to an existing a
... See more
Does this help?

http://www.memecode.com/docs/winzip.html

-f or -u

Or this:

https://www.lifewire.com/linux-commands-4102690

How To Add New Files To An Existing Zipped Archive
If you want to add new files to an existing archive or update the files in an archive, simply use the same name for the archive file when running the zip command.

Bash for Windows 10

[Edited at 2017-09-06 05:04 GMT]
Collapse


 
Samuel Murray
Samuel Murray  Identity Verified
Netherlands
Local time: 21:33
Member (2006)
English to Afrikaans
+ ...
TOPIC STARTER
@Caf Sep 6, 2017

CafeTran Training wrote:
Does this help?
http://www.memecode.com/docs/winzip.html
-f or -u


I'm sure it's probably either -f or -u, but I need to know what is the syntax (i.e. how should I specify the paths to get the desired result). I do not want a zip file with a folder inside it with the same name as the zip file itself.


 


To report site rules violations or get help, contact a site moderator:


You can also contact site staff by submitting a support request »

Update files in zip file from subfolder in same folder as zip file, using commandline (or other)






Trados Business Manager Lite
Create customer quotes and invoices from within Trados Studio

Trados Business Manager Lite helps to simplify and speed up some of the daily tasks, such as invoicing and reporting, associated with running your freelance translation business.

More info »
CafeTran Espresso
You've never met a CAT tool this clever!

Translate faster & easier, using a sophisticated CAT tool built by a translator / developer. Accept jobs from clients who use Trados, MemoQ, Wordfast & major CAT tools. Download and start using CafeTran Espresso -- for free

Buy now! »