This is my first post here. So first of all, I would like to say that I really like the power of Total Commander. I bought my license years ago but just started to use it seriously since a few weeks. This is for work mainly. The reason I wasn't using it in the past is because my previous job was not letting me install the softwares I wanted. Now my current job gives me freedom so I installed TC and I am happy!
Now the question. I defined a custom columns mode containing few columns including size. Using that, it seems that the size display setting (under Configuration->Display->Tabstops) is ignored in that case. I want to display the size as kbytes. Do I miss something? Is it by-design?
jonathanpoulin wrote: 2021-01-16, 14:18 UTC
I defined a custom columns mode containing few columns including size.
Which size? (-> Code?)
jonathanpoulin wrote: 2021-01-16, 14:18 UTC
Using that, it seems that the size display setting (under Configuration -> Display -> Tabstops) is ignored in that case.
Yes, a "custom columns view" overrides the setting under Configuration -> Display -> Tabstops.
jonathanpoulin wrote: 2021-01-16, 14:18 UTCI want to display the size as kbytes.
In the "custom columns view", a column for the display in kbytes must be specified, e.g.
That's good! I just tried it and this is what I was looking for. And yes, this was clearly explained in the help file. This time I did not took a look there first... I saw that I can add a prefix and/or a suffix as well. I added suffix "kb".
When setting up the columns, you can also put "kb" in the column "Caption".
This column is intended for column headings and in this case you could even save some space (by displaying kilobytes) in this column.
Before you get started, I would like to inform you of the following (unfortunately I missed this fact before):
- For folders(!), the "Size in KB" column no longer displays a value.
- "<DIR>" is also no longer displayed in the column "Size in KB". Unfortunately, I don't know the solution to this either.
Add the following to the "options.ini" file (%COMMANDER_PATH%\Plugins\wdx\WinScriptsAdv_wdx\options.ini)
in the [Script] section in line "ActiveScripts=" .......: ExplorerKBRounding
For me, for example, it currently looks like this: ActiveScripts=MinutesAgo|CheckEncoding|Signature|ExplorerKBRounding|FilesCount|GetDetailsOf|NTLink|ContinuousNumbers|
In the WinScript Advanced "options.ini" file, add this section (including section name!) as follows:
[ExplorerKBRounding]
; File Size with explorer rounding in kB
Script=ExplorerKBRounding.vbs
content=Size in KB
extensions=*
FoldersPaths=0
Save the .vbs file with a text editor and place it in the "Scripts" folder in the path mentioned.
%COMMANDER_PATH%\Plugins\wdx\WinScriptsAdv_wdx\Scripts\ExplorerKBRounding.vbs
'==============================================================================
'Script for WinScriptAdv content plugin
' content - file size in kB (Like Explorer column)
'==============================================================================
Set FSO=CreateObject("Scripting.FileSystemObject")
content=Result(filename)
Set FSO=Nothing
Function Result(pPath)
If FSO.FileExists(pPath) Then
set F=FSO.GetFile(pPath)
Result=Round((F.Size+512)/1024)
set F=Nothing
End If
End Function
Caption: Size in KB
Field contents: [=winscriptsadv.Size in KB]
Result:
- For folders(!), the "Size in KB" column no longer displays a value.
- "<DIR>" is also no longer displayed in the column "Size in KB". Unfortunately, I don't know the solution to this either.
Remark:
To display the folder size, simply press the space bar or Ctrl+L.
The display takes place in real time using the "Everything" tool in Total Commander.
Exit and restart Total Commander, e.g. with this BUTTON
TOTALCMD#BAR#DATA
CM_EXIT 9
TOTALCMD.EXE,25
CM_EXIT 9|1: Exit and restart Total Commander|8: Pass current left and right directory and file under cursor to new instance|https://www.ghisler.ch/board/viewtopic.php?p=446794#p446794
0
-1