Is it possible to increase the buffer size for the file names?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
maxlix33
Junior Member
Junior Member
Posts: 3
Joined: 2023-03-04, 16:34 UTC

Is it possible to increase the buffer size for the file names?

Post by *maxlix33 »

I have a directory with about 1000 files and rather long file names. If I select all the files and I pass them to an application called through a button-bar button (via %S), I get the TC error "Too many files selected!". If I rename the files, so that they have a shorter filename, then I can get over the error. Obviously my original filenames are exceeding the maximum buffer size allowed by the TC. This is quite a nuisance. Is there a setting in the ini file that controls the buffer size allocated for this purpose?
Thanks in advance!
User avatar
Horst.Epp
Power Member
Power Member
Posts: 7011
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Is it possible to increase the buffer size for the file names?

Post by *Horst.Epp »

Thats a limit which can't be increased.
The solution is to use parameters like %L %WL and so on (see help).
This produces a temp file with the selected files whos name is given as argument to the program.
Requirement is of course that the program can accept list of files name as parameters.
Windows 11 Home, Version 24H2 (OS Build 26100.4351)
TC 11.55 RC7 x64 / x86
Everything 1.5.0.1395a (x64), Everything Toolbar 1.5.5.0, Listary Pro 6.3.2.88
QAP 11.9.0.4 x64
User avatar
Dalai
Power Member
Power Member
Posts: 10021
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Is it possible to increase the buffer size for the file names?

Post by *Dalai »

It's probably not TC that imposes a limit here. Windows has a maximum command line length limit, in this case most likely the ShellExecuteEx API function.

Use %S only in cases where a list file - created by %L, %UL or %WL - isn't possible.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply