J
J
jslby2015-02-26 18:24:13
Data archiving
jslby, 2015-02-26 18:24:13

How to add a file to an archive?

There are many archives, how to add a file inside them?
Preferably automatically to all at once

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem @Jump, 2015-02-26
@jslby

Write a batch file with the following content:
Adds the new_file.txt file to all rar archives found in the C:\Arhives folder , the "-ep" switch indicates that the file must be added without paths.
If the archives are zip, then write *.zip instead of *.rar.
For other archivers, the command to add to the archive and the keys may be different, but this can be easily found in the help for a particular archiver.

V
Vladimir Martyanov, 2015-02-26
@vilgeforce

What type of archive? If 7ZIP supports creating this type of archive, use its console version 7z.exe

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question