Link to home
Start Free TrialLog in
Avatar of fungfat
fungfat

asked on

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

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?
ASKER CERTIFIED SOLUTION
Avatar of Brian Pringle
Brian Pringle
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fungfat
fungfat

ASKER

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
         
Avatar of Merete
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/
Avatar of fungfat

ASKER

One mistake.  There must be a '@' in front of the filelist.txt to indicate to winzip that the file contains a list of files.