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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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/
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/
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.
ASKER
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