Update files in zip file from subfolder in same folder as zip file, using commandline (or other)
Thread poster: Samuel Murray

Samuel Murray  Identity Verified
Netherlands
Local time: 13:58
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 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]


 

Otha Nash
United States
Local time: 07:58
Member (2017)
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  Identity Verified
Netherlands
Local time: 13:58
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
Netherlands
Local time: 13:58
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 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]


 

Samuel Murray  Identity Verified
Netherlands
Local time: 13:58
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)

Advanced search






BaccS – Business Accounting Software
Modern desktop project management for freelance translators

BaccS makes it easy for translators to manage their projects, schedule tasks, create invoices, and view highly customizable reports. User-friendly, ProZ.com integration, community-driven development – a few reasons BaccS is trusted by translators!

More info »
Protemos translation business management system
Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!

The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search