PDA

View Full Version : list file


mjohansen
07-17-2008, 01:57 PM
Hi,

I tried the @list-file command line parameter after creating a file with filenames separated by CRLF. It only processes the first line. :(

Michael

sentinel
08-06-2008, 09:59 AM
Hey Michael,

When using the @listfile command, make sure that each line of the listfile contains only one filename.
Filenames may also include wildcards. The wildcard specification "*" is assumed to mean "*.*", i.e., all files.
Listfiles can also contain comments: any text following a semicolon (';') is ignored, up to the end of the line.

Here is an example of the contents of a listfile:

; List of files to extract
info.doc
*.txt ; Extract all .txt files

Please write back if you encounter further problems.

mjohansen
09-04-2008, 11:29 AM
I did that. One file per line to be added to a new zip file.
The files contained full path. Only first file was added.

sentinel
09-09-2008, 07:24 AM
Hey Michael,

I was able to use the listfile feature without any problems.
just to make sure, i went and downloaded the most recent version from the jzip site.
using the filelist feature i was able to extract files from an archive and even add files to an archive (even if the help file doesn't specifically say so).
i also tested it using full path or using just the file names (with and without wildcards)

Here's an example:

listfile.txt contains list of files, each in a separate line:
*.exe
test.jpg
c:\users\test\hello.doc

to add files to an archive, i type the following:
jzip -a test.zip @listfile.txt

to extract files from an archive, i type:
jzip -e test.zip @listfile.txt

and now with complete pathnames: (assuming i'm in c:\)
jzip -a d:\folder\test.zip @c:\temp\listfile.txt
will created an archive named test.zip, in drive D, under the "folder" directory.
this archive will contain all files listed in the listfile.txt (assuming such files exist)