How to use zipfromlist ?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
jjk
Member
Member
Posts: 181
Joined: 2003-07-03, 10:41 UTC

How to use zipfromlist ?

Post by *jjk »

Help file said
With the command zipfromlist, you can create a zip file from a list of files. The command field must contain the zip file name, and the parameters field the name of the list file. The list file must contain a list of files to be packed, one file per line.
But, how to use that ? What to put in command field ? Where do I put "zipfromlist" ?
- zipfromlist c:\xxx\file.zip, with or without path ?
And what in the parameters field ? file name only, or with path ?
- the file list must contain pathes of files to zip ?
Someone could give me an example ?
TIA
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

2jjk

Example 1:
Command: zipfromlist
Parameter: %Ptest.zip
Icon: choose whatever you like

Drag'n'drop files list onto this button :)

Example 2.
Command: zipfromlist d:\backup\new.zip
Parameter: d:\backup\important.lst
Icon: whatever you like

Click on this button.

Example 3.
Command: zipfromlist d:\backup\new.zip
Parameter: %L
Icon: whatever you like

Select some files in panel and click on button.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Re: How to use zipfromlist ?

Post by *ts4242 »

jjk wrote:- zipfromlist c:\xxx\file.zip, with or without path ?
If you didn't provide the full path e.g (zipfromlist file.zip), TC will create file.zip in the current active panel directory.
jjk wrote:And what in the parameters field ? file name only, or with path ?
- the file list must contain pathes of files to zip ?
In the parameters field, type the path to a text file contains a list of file paths you want to pack with or without full path, if you didn't provide the full path, TC will use the path of the current active panel directory.
jjk
Member
Member
Posts: 181
Joined: 2003-07-03, 10:41 UTC

Post by *jjk »

Thank you to both.
I will try that.
User avatar
zhv
Junior Member
Junior Member
Posts: 76
Joined: 2006-03-11, 14:54 UTC

Post by *zhv »

But, what should I do if the folder structure is not needed?
i.e. the path names are not wanted in the packed archive.
jjk
Member
Member
Posts: 181
Joined: 2003-07-03, 10:41 UTC

Post by *jjk »

Sorry to answer so later, but I was busy.
Fenix, I tried your solutions : only the 3rd one matches my needs because I have not to create the lst file (containing names of files to zip).
Also for ts4242's answer.
But then, as zhv, I wonder how to not have the complete folder structure. I tried with %l instead of %L but I have always the full paths.
User avatar
DrShark
Power Member
Power Member
Posts: 1872
Joined: 2006-11-03, 22:26 UTC
Location: Kyiv, 68/262
Contact:

Post by *DrShark »

fenix_productions wrote: Example 1:
Command: zipfromlist
Parameter: %Ptest.zip
Icon: choose whatever you like

Drag'n'drop files list onto this button :)
This example is incorrect: zip archive name must be in Command field, and cut&paste there from Parameter field won't work because in the Command field parameters like %P are not supported.
Donate for Ukraine to help stop Russian invasion!
Ukraine's National Bank special bank account:
UA843000010000000047330992708
Post Reply