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

English support forum

Moderators: white, Hacker, petermad, Stefan2

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

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

Post by *petermad »

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 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Is there a limit to the SELECTFILES command?

Post by *ghisler(Author) »

It should be the same 32kBytes. I will check it.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Is there a limit to the SELECTFILES command?

Post by *petermad »

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 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

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

Post by *ghisler(Author) »

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
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

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

Post by *petermad »

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 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply