[solved] Is there a limit to the SELECTFILES command?

English support forum

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 8964
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

[solved] Is there a limit to the SELECTFILES command?

Post by *petermad » 2019-10-19, 01:13 UTC

If I make a command like:

Code: Select all

[em_ext_select_source]
cmd=SELECTFILESBTS
param=%Z%Y%S
menu=Select elements in target side, if selected in source side
Then there seem to be a limit at about 700 for the entire number of characters in the filenames that can be selected. %S can hold far more than that (32kb) - so is it a limit to the params field or to the SELECTFILES command? - and could it be raised so about the 32Kb of info could be transferred?
Last edited by petermad on 2019-10-31, 21:45 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 9.5b3 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38384
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Is there a limit to the SELECTFILES command?

Post by *ghisler(Author) » 2019-10-21, 15:12 UTC

It should be the same 32kBytes. I will check it.
Author of Total Commander
http://www.ghisler.com

User avatar
petermad
Power Member
Power Member
Posts: 8964
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: Is there a limit to the SELECTFILES command?

Post by *petermad » 2019-10-31, 21:45 UTC

History.txt:
22.10.19 Added: SELECTFILES command: Support list up to 32767 characters long, e.g. SELECTFILESBTS with parameter %Z%Y%S (32/64)
Confirmed solved in TC 9.5b3 :-)
License #524 (1994)
Danish Total Commander Translator
TC 9.5b3 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38384
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [solved] Is there a limit to the SELECTFILES command?

Post by *ghisler(Author) » 2019-11-01, 15:14 UTC

Thanks! Unfortunately it can be quite slow with many files, because each name in the list will be compared with each file name (n^2 complexity).
Author of Total Commander
http://www.ghisler.com

User avatar
petermad
Power Member
Power Member
Posts: 8964
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Re: [solved] Is there a limit to the SELECTFILES command?

Post by *petermad » 2019-11-01, 15:32 UTC

About 6 seconds for 500 files, not that bad - and at least I can now mark 1000 files or more - before I could only mark 20-30 :-)
License #524 (1994)
Danish Total Commander Translator
TC 9.5b3 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 (1909) 64bit, 'Everything' 1.4.1.935 (x64)
TC 3.0b12 on Android 6.0
Get: Extended Total Commander Menus | PHSM-Calendar

Post Reply