tc selection fastcopy error "too many files selected"

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
giulia
Senior Member
Senior Member
Posts: 303
Joined: 2013-09-14, 05:33 UTC
Location: Europe

tc selection fastcopy error "too many files selected"

Post by *giulia »

Hi
i have created a full portable tc 64 and 32bit a custom button for fastcopy portable 64bit and 32bit , i have copied both inside the tc rootfolder

for the custom button 64bit
%COMMANDER_PATH%\FastCopy.exe /no_exec /open_window /cmd=noex
%P%S /to="%T"
start path empty


i have selected 1800 files and 140 folders , cliched on the custom fastcopy button and i get "Too many files selected!"

is a TC limit or a fast copy limit ?
I guess it's a tc limit or custom button limit ? Because I can drag and drop the same selection to fastcopy without any errors

thanks

same screenshot on different hosts because some users have issues to see them
Image: https://i.imgur.com/mmbBJdh.png
Image: https://ibb.co/kJ3nt18
Image: https://i.postimg.cc/05Bg015G/Image-1.png
love Total Commander , best file manager ever made
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: tc selection fastcopy error "too many files selected"

Post by *Horst.Epp »

Drag and drop is not the same as a command line, which has limits.
I use TeraCopy for this which has no such limits and uses parameters with a file list from TC.
For example the following for a copy
Move *"%UL" "%T"
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: tc selection fastcopy error "too many files selected"

Post by *Dalai »

It's a command line length limitation. In TC this is limited to 2047 characters

Code: Select all

16.09.11 Release Total Commander 8.0 public beta 1 (32/64)
[...]
05.06.11 Fixed: Button bar: Parameter field was limited to 259 characters -> increased to 2047 (2 kbyte minus terminating 0) (32/64)
but Windows also has some limit.

See if FastCopy allows to provide the files via a list file, preferably in Unicode (UTF-16 or UTF-8) form to avoid code page issues. If so, you can use TC's %WL or %UL button parameters.

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
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: tc selection fastcopy error "too many files selected"

Post by *petermad »

Even if TC didn't have a limit to its parameters length Windows has a limit of 8191 characters to its command line - that means the each of your 1800 file names could not be much longer that 4 characters - including path!
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
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: tc selection fastcopy error "too many files selected"

Post by *nsp »

Using %S will populate command line and reach windows limitation !

With fastcopy, you can use /srcfile_w=%WL or /srcfile=%UL to pass longer file list see help on command line. if you have some issues because TC delete temp file before fascopy process and prepare the task, you can first copy tmp file then call fastcopy.
giulia
Senior Member
Senior Member
Posts: 303
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: tc selection fastcopy error "too many files selected"

Post by *giulia »

Dalai wrote: 2022-01-07, 21:15 UTC It's a command line length limitation. In TC this is limited to 2047 characters

Code: Select all

16.09.11 Release Total Commander 8.0 public beta 1 (32/64)
[...]
05.06.11 Fixed: Button bar: Parameter field was limited to 259 characters -> increased to 2047 (2 kbyte minus terminating 0) (32/64)
but Windows also has some limit.

See if FastCopy allows to provide the files via a list file, preferably in Unicode (UTF-16 or UTF-8) form to avoid code page issues. If so, you can use TC's %WL or %UL button parameters.

Regards
Dalai
petermad wrote: 2022-01-07, 22:22 UTC Even if TC didn't have a limit to its parameters length Windows has a limit of 8191 characters to its command line - that means the each of your 1800 file names could not be much longer that 4 characters - including path!
hi
you (both) are right , i can select all folders and files via tc and drag and drop but fastcopy source list it's incomplete
See if FastCopy allows to provide the files via a list file, preferably in Unicode (UTF-16 or UTF-8) form to avoid code page issues. If so, you can use TC's %WL or %UL button parameters.

hi , no luck
love Total Commander , best file manager ever made
giulia
Senior Member
Senior Member
Posts: 303
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: tc selection fastcopy error "too many files selected"

Post by *giulia »

Horst.Epp wrote: 2022-01-07, 19:32 UTC Drag and drop is not the same as a command line, which has limits.
I use TeraCopy for this which has no such limits and uses parameters with a file list from TC.
For example the following for a copy
Move *"%UL" "%T"
Hi
Teracopy is not portable , it left hidden folder and file in the user folder , like Obsidium x64 folder inside roaming and another hidden folder .obs64
the last version should be 3.9 but on the homepage under download there is only 3.8.5 in installation version and zip portable version
about the last version 3.9 ,it's under news ,only installation version , tried i does give the possibility to perform a portable version
and seems to be no so faster than windows file explorer copy , watch the youtube video ->> Windows 10 vs SuperCopier 5 vs FastCopy vs ExtremeCopy vs Teracopy 101 GB Multi file

can't find supercopier 5 , i guess it's ultracopier
thanks
love Total Commander , best file manager ever made
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: tc selection fastcopy error "too many files selected"

Post by *nsp »

giulia wrote: 2022-01-08, 09:02 UTC
petermad wrote: 2022-01-07, 22:22 UTC Even if TC didn't have a limit to its parameters length Windows has a limit of 8191 characters to its command line - that means the each of your 1800 file names could not be much longer that 4 characters - including path!
hi
you (both) are right , i can select all folders and files via tc and drag and drop but fastcopy source list it's incomplete
See if FastCopy allows to provide the files via a list file, preferably in Unicode (UTF-16 or UTF-8) form to avoid code page issues. If so, you can use TC's %WL or %UL button parameters.

hi , no luck
Drag 'n drop put all file in the command line and is not the same as clicking on a button or using a shortcut. No way to use the Drag'n drop for so long list !
I use a button on TC that work like a charm with %WL, but i never use drag 'n drop !
// adapt to your needs options and fastcopy path if you just want to create such button !
"%T\" is used to protect last quote against last backslash inserted with %T.

Code: Select all

TOTALCMD#BAR#DATA
C:\tools\FastCopy\FastCopy.exe
 /srcfile_w="%WL"  /no_exec /to="%T\"
C:\tools\FastCopy\FastCopy.exe
FastCopy
C:\tools\FastCopy\

-1
giulia
Senior Member
Senior Member
Posts: 303
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: tc selection fastcopy error "too many files selected"

Post by *giulia »

nsp wrote: 2022-01-08, 10:23 UTC
Drag 'n drop put all file in the command line and is not the same as clicking on a button or using a shortcut. No way to use the Drag'n drop for so long list !
I use a button on TC that work like a charm with %WL, but i never use drag 'n drop !
// adapt to your needs options and fastcopy path if you just want to create such button !
"%T\" is used to protect last quote against last backslash inserted with %T.

Code: Select all

TOTALCMD#BAR#DATA
C:\tools\FastCopy\FastCopy.exe
 /srcfile_w="%WL"  /no_exec /to="%T\"
C:\tools\FastCopy\FastCopy.exe
FastCopy
C:\tools\FastCopy\

-1
Hi Nsp
It works
I have used this and it works , but it add a slash on the destination , for example if the destination is X: , on Fastcopy on destination there is X:\\
do you think it's a problem have 2 \\ ?
thanks Nsp , appreciate it a lot
seeing i use TC portable on a usb , i have used %COMMANDER_PATH%

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\FastCopy.exe
 /srcfile_w="%WL"  /no_exec /to="%T\"
%COMMANDER_PATH%\FastCopy.exe
FastCopy
%COMMANDER_PATH%

-1
love Total Commander , best file manager ever made
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: tc selection fastcopy error "too many files selected"

Post by *Horst.Epp »

Remove the \ from the parameter /to="%T\"
This is not needed
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
giulia
Senior Member
Senior Member
Posts: 303
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: tc selection fastcopy error "too many files selected"

Post by *giulia »

Horst.Epp wrote: 2022-01-08, 16:33 UTC Remove the \ from the parameter /to="%T\"
This is not needed
Hi
yes !
thanks
love Total Commander , best file manager ever made
Post Reply