We help IT Professionals succeed at work.

zip a list of files whose file names are in a text file

fungfat
fungfat asked
on
879 Views
Last Modified: 2012-05-05
How to zip a list of files whose file names are contained in a file.

For example, I have a file contains 10 file names with full path of the file name.  I like to zip the 10 files into one zip file.  How can I do it?
Comment
Watch Question

Digital Services Advisor, SCM, ERP
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks btpringle.  Very thorough answer.  I have only the "evaluated" version, and no "command line" extension, so I cannot do the zipping with filelist yet.  But I believe I have it in the office.

I check the site you gave me and find all the parameters for the command line to zip with a file that contains the list of file names.  It is like the following:

     winzip -min -a -r myfile.zip filenames.txt
          where
              -min is to run in minimized mode
              -a is to add files to the zip file
              -r is for recursive, meaning include all subfolders
              myfile.zip is the result file
              filelist.txt contains all the file names to be zipped
         
CERTIFIED EXPERT

Commented:
the full version of winrar will do this, put them in a folder give it a name, ( TEM ) for an example purpose only,
 then  simply highlight the entire 10 and r/click them choose Add toTEMrar
It will either produce one RAR or if the files exceed a ceratin size it will spit them out into separate rar numbered 1 to the end.
Large files/games movies anything even  over 1 gig in size are compressed like this.
WinRAR
From Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/WinRAR

http://www.win-rar.com/

Author

Commented:
One mistake.  There must be a '@' in front of the filelist.txt to indicate to winzip that the file contains a list of files.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.