ghisler(Author) wrote: 2023-06-01, 09:33 UTC I have added %COMMANDER_SESSIONNAME% now! .... (see below for more)
wincmd.ini
------------------------------
[Colors]
RedirectSection=%COMMANDER_INI%\..\Colors_%SESSIONNAME%.ini
------------------------------
When in admin, SESSIONNAME is not defined.
Then TC creates 'Colors_%SESSIONNAME%.ini' itself instaed of 'Colors_.ini'.
When editng 'Colors_%SESSIONNAME%.ini' not in admin and executed from TC,
Notepad can edit 'Colors_%SESSIONNAME%.ini' itself.
However, gvim edits 'Colors_Console.ini' instead of 'Colors_%SESSIONNAME%.ini'.
Also it generates a problem in cmd.
cmd expands the variable of pathname.
TC already has the ability that distinguish Admin Right. ( ^ in the titlebar )
Is it possible to add another TC variable like COMMANDER_SESSIONNAME (not empty) ?
in admin - COMMANDER_SESSIONNAME=admin
not in admin - COMMANDER_SESSIONNAME=user
or bool state.
It will be very useful when using it instead of SESSIONNAME.