Quantcast
Channel: Total Commander
Viewing all articles
Browse latest Browse all 3865

Total Commander (English) • Re: How to check the number of files in the %S variable?

$
0
0
%S has a limit on the length of the command line. This way you can get accurate data on the number of items:

Code:

TOTALCMD#BAR#DATA%COMMANDER_PATH%\Addons\TCFS2\TCFS2.exe /ef tcm(-1,1) "eval(settext_wait(`Marked items count: `msg(1074,msg(1074,1000)+1004),findwnd(Static,,findwnd(#32770))))"%S:~,0wciconex.dll,73Number of marked items

Code:

TOTALCMD#BAR#DATA%COMMANDER_PATH%\Addons\TCFS2\TCFS2.exe /ef varset(1,msg(1074,1000)) tcm(-1,1) "eval(settext_wait(`Selected items count: `msg(1074,varget(1)+1004)?msg(1074,varget(1)+1004):if(msg(1074,varget(1)+1008),msg(1074,varget(1)+1006)?1:0,1),findwnd(Static,,findwnd(#32770))))"%S:~,0wciconex.dll,217Number of selected items

Statistics: Posted by Fla$her — 2024-05-09, 10:10 UTC



Viewing all articles
Browse latest Browse all 3865

Trending Articles