Feed list of files to listbox from text file (2022)

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
white
Power Member
Power Member
Posts: 5986
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Feed list of files to listbox from text file (2022)

Post by *white »

Piotr285 wrote: 2022-03-18, 13:54 UTC
white wrote: 2022-03-17, 13:05 UTC ...
Gral wrote: 2022-03-17, 11:22 UTC Did you read help for this?
Except the next line says it isn't ;)
Thank you white for the solid explanation!

What is an example of the exception you mentioned?
An example is listed as first example in the Help.
Total Commander Help - Find files: General - Search in, wrote:The "Search for" field is ignored when searching from list.
Sample list: Description
c:\testdir\ Searches "c:\testdir" for files defined in "search for"
...
See the contradiction?
As I said earlier, the exception is for lines in @file that contain folder name only (lines ending with \).
User avatar
white
Power Member
Power Member
Posts: 5986
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Feed list of files to listbox from text file (2022)

Post by *white »

Piotr285 wrote: 2022-03-18, 13:48 UTC
Piotr285 wrote: 2022-03-18, 13:41 UTC Another use case
...so that you can simply copy them again from server in case of changes made to server versions.
And additionally, I'm wondering how to copy/overwrite the local versions to the server while preserving the existing server folder structure?
Perhaps 'download lists' are useful to you as described here:
viewtopic.php?p=260001#p260001

Be aware that if you create such lists that they are very sensitive to spaces. Be sure not to put additional spaces where they are not allowed.
To create a list you could let Total Commander create a logfile and copy and edit the data.
An entry in a logfile looks like this:

Code: Select all

18-03-2022 18:43:33: Copy: C:\Users\piotr\Downloads\Folder\Article\qin2018.pdf -> d:\TEST\qin2018.pdf
To turn it into a 'download list' you remove the time stamp and remove the space behind "Copy:":

Code: Select all

Copy:C:\Users\piotr\Downloads\Folder\Article\qin2018.pdf -> d:\TEST\qin2018.pdf
And to copy it back:

Code: Select all

Copy:d:\TEST\qin2018.pdf -> C:\Users\piotr\Downloads\Folder\Article\qin2018.pdf
Also pay attention to the hint to make the list Read only if you want to be able to repeat the action more than once.
Piotr285
Junior Member
Junior Member
Posts: 10
Joined: 2022-03-14, 14:54 UTC

Re: Feed list of files to listbox from text file (2022)

Post by *Piotr285 »

white wrote: 2022-03-18, 17:54 UTC ...
Perhaps 'download lists' are useful to you as described here:
viewtopic.php?p=260001#p260001
...
Also pay attention to the hint to make the list Read only if you want to be able to repeat the action more than once.
Thank you white! It works.
Post Reply