command line - display folders SORTED by size
Moderators: Hacker, petermad, Stefan2, white
command line - display folders SORTED by size
Hi
Is there a way to start TC using bat file - that will display the given folders - sorted by SIZE ??
thank you !!
Is there a way to start TC using bat file - that will display the given folders - sorted by SIZE ??
thank you !!
To sort by size you have command 123 (cm_LeftBySize) and 223 (cm_RightBySize).
You can use in a batch nirsoft nircmd like this :
Using the same method, you can use automation scripting language like PowerPro, AHK, AutoIT, WinBatch, VBScript, PowerShell,..... to send 1075/0123 message tyo TotalCmd window.
You can use in a batch nirsoft nircmd like this :
Code: Select all
:::: Launch TC and sort by size L / R ::::
totalcmd ..... <your parameters to open folder>
REM wait one second ...
nircmd wait 1000
nircmd win sendmsg class TTOTAL_CMD 1075 0123 0
nircmd win sendmsg class TTOTAL_CMD 1075 0223 0
Re: command line - display folders SORTED by size
Perhaps you can redirect section left/right in wincmd.inigonen52 wrote:Is there a way to start TC using bat file - that will display the given folders - sorted by SIZE ??
Code: Select all
[left]
RedirectSection=c:\left.ini
Code: Select all
(echo [left]
echo path=d:\some folder\
echo ShowAllDetails=1
echo SpecialView=0
echo show=1
echo sortorder=3
echo negative Sortorder=1
)>c:\left.ini
You do not have to install any software, nircmd.exe is a portable application just copy the exe.gonen52 wrote:Sorry but I am not allowed to install any software in addition to TC.
If you accept to have a additional step, you could define with TC 8.1 a button in TC that sort both L+R at same time.
Code: Select all
TOTALCMD#BAR#DATA
cm_LeftUnsorted,cm_RightUnsorted,cm_LeftBySize,cm_RightBySize
wciconex.dll,14
0
-1
The idea of having Left /Right sections redirected is a very good idea, but need to be tested in all use cases !