Administrator Color Theme is required when TC starts as an Administrator.
Moderators: Hacker, petermad, Stefan2, white
Administrator Color Theme is required when TC starts as an Administrator.
A different color theme is very useful when TC starts as an Administrator.
I use a different color theme when starting TC as an Administrator with a different wincmd.ini using *.lnk.
[*.lnk]
TOTALCMD64.EXE /i:"[path-to-another-wincmd-ini]"
with "Run as Administrator" in the *.lnk property.
I think the Admnistrator Color Theme will also be very useful for others when TC starts as an Administrator.
I use a different color theme when starting TC as an Administrator with a different wincmd.ini using *.lnk.
[*.lnk]
TOTALCMD64.EXE /i:"[path-to-another-wincmd-ini]"
with "Run as Administrator" in the *.lnk property.
I think the Admnistrator Color Theme will also be very useful for others when TC starts as an Administrator.
Re: Administrator Color Theme is required when TC starts as an Administrator.
This can easily be achieved by using the environment variable %SESSIONNAME% (empty string as Admin, "Console" as normal User),
Just redirect these sections in your wincmd.ini:
Kind regards
Holger
Just redirect these sections in your wincmd.ini:
Code: Select all
[Colors]
RedirectSection=%COMMANDER_INI%\..\Colors_%SESSIONNAME%.INI
[ColorsDark]
RedirectSection=%COMMANDER_INI%\..\Colors_%SESSIONNAME%.INI
Holger
Make our planet great again
Re: Administrator Color Theme is required when TC starts as an Administrator.
I disagree and think the ^ in the titlebar is enough.cpp64 wrote: 2023-05-24, 14:41 UTC I think the Admnistrator Color Theme will also be very useful for others when TC starts as an Administrator.
How about adding TitleExtraText=$I AM THE ADMIN! into the wincmd.ini under [Configuration]
so you can see at first glance that your the Admin?

Hoecker sie sind raus!
Re: Administrator Color Theme is required when TC starts as an Administrator.
How about changing your windows username to "I AM THE ADMIN!"
;-)
Holger
;-)
Holger
Make our planet great again
Re: Administrator Color Theme is required when TC starts as an Administrator.
2HolgerK
that would make his Titlebar a bit full wouldnt it?
I AM THE ADMIN!^ - TC 11.00b3 - unregistered - I AM THE ADMIN!
yep I dont think he would see that he has startet tc as admin that way
that would make his Titlebar a bit full wouldnt it?
I AM THE ADMIN!^ - TC 11.00b3 - unregistered - I AM THE ADMIN!
yep I dont think he would see that he has startet tc as admin that way

Hoecker sie sind raus!
Re: Administrator Color Theme is required when TC starts as an Administrator.
I use multiple TCs in 4k 43 inch monitor with the maximized window with virtual desktops.Sir_SiLvA wrote: 2023-05-24, 15:35 UTC I disagree and think the ^ in the titlebar is enough.
How about adding TitleExtraText=$I AM THE ADMIN! into the wincmd.ini under [Configuration]
so you can see at first glance that your the Admin?![]()
It's so annoying to look at the top left corner of each TC or the title bar of each cmd to tell if I'm the Administrator all in the same color.
Different Color and diffrent prompt when i am the Administrator is really essential for me.
Re: Administrator Color Theme is required when TC starts as an Administrator.
The left "I AM THE ADMIN!" is the USERNAME, the right "I AM THE ADMIN!" comes fromHolgerK wrote: 2023-05-24, 15:54 UTC Where do you see the repetition of the username at the end of the title?:-)
Ist your TC registered to "unregistered - I AM THE ADMIN!"?
It should look like "I AM THE ADMIN!^ - TC 11.00b3 (x64) - Holger K..."
the wincmd.ini-entry TitleExtraText=$I AM THE ADMIN!
Sorry but that is literally the same

@cpp64:
So then use HolgerKs example and make for example the background of admins black?
Hoecker sie sind raus!
Re: Administrator Color Theme is required when TC starts as an Administrator.
I tried.Sir_SiLvA wrote: 2023-05-24, 17:14 UTC So then use HolgerKs example and make for example the background of admins black?
But TC creates real colors_%SESSIONNAME%.ini file, not colors_.ini when SESSIONNAME is not defined.
When I open the real colors_%SESSIONNAME%.ini file using an app, the app opens colors_Console.ini, not real colors_%SESSIONNAME%.ini file.
Since SESSIONNAME is not defined when in Admin, it doesn't seem appropriate to use SESSIONNAME in TC.
Last edited by cpp64 on 2023-05-24, 19:53 UTC, edited 1 time in total.
Re: Administrator Color Theme is required when TC starts as an Administrator.
Yepp, it's a little bit confusing that the filename "colors_%SESSIONNAME%.ini" contains an environment variable and some editors tries to expand these variable to "Console" but that shouldn't hinder TC to use the correct ini file.
I'm using this solution for more than 10 years without any problems (normal panel background dark blue, admin panel background dark red).
BTW: Notepad.exe or Notepad++.exe should open the "colors_%SESSIONNAME%.ini" without problem.
Regards
Holger
I'm using this solution for more than 10 years without any problems (normal panel background dark blue, admin panel background dark red).
BTW: Notepad.exe or Notepad++.exe should open the "colors_%SESSIONNAME%.ini" without problem.
Regards
Holger
Make our planet great again
Re: Administrator Color Theme is required when TC starts as an Administrator.
2HolgerK
Thanks for the SESSIONNAME tip.
I created a simple batch command.
@if defined SESSIONNAME (echo user) else (echo admin).
This is very useful for me because cmd shows the same prompt when in Admin.
Thanks for the SESSIONNAME tip.
I created a simple batch command.
@if defined SESSIONNAME (echo user) else (echo admin).
This is very useful for me because cmd shows the same prompt when in Admin.
Re: Administrator Color Theme is required when TC starts as an Administrator.
As for Command Prompt: this could be made easier using the following registry entry to colorize the elevated command processor window:
the first nibble "4" is used for the background color
the second nibble "E" is used for the foreground color
In this case: dark red background + bright yellow foreground
Regards
Holger
Code: Select all
REGEDIT4
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Command Processor]
"Autorun"="@whoami /groups | @find /i \"S-1-16-12288\" >nul && @color 4E"
the second nibble "E" is used for the foreground color
In this case: dark red background + bright yellow foreground
Color codes
Code: Select all
0 black
1 blue
2 green
3 cyan
4 red
5 magenta
6 yellow/brown
7 white
8 gray
9 bright blue
A bright green
B bright cyan
C bright red
D bright magenta
E bright yellow
F white
Holger
Make our planet great again
Re: Administrator Color Theme is required when TC starts as an Administrator.
2HolgerK
"AutoRun"="@if not defined SESSIONNAME (prompt [Administrator]$p$g)"
------------------------------------------------------------
Thank you for your interest.
------------------------------------------------------------
ps.
'color xxx' changes the color of the Windows terminal to a different color, not the same as cmd.
------------------------------------------------------------HolgerK wrote: 2023-05-24, 19:32 UTC "Autorun"="@whoami /groups | @find /i \"S-1-16-12288\" >nul && @color 4E"
"AutoRun"="@if not defined SESSIONNAME (prompt [Administrator]$p$g)"
------------------------------------------------------------
Thank you for your interest.
------------------------------------------------------------
ps.
'color xxx' changes the color of the Windows terminal to a different color, not the same as cmd.
Re: Administrator Color Theme is required when TC starts as an Administrator.
"'color xxx' changes the color of the Windows terminal to a different color, not the same as cmd."
this depends on "Terminal -> Settings -> Command Prompt -> Appearance -> Color scheme"
to use the original cmd color scheme (matching the previous mention color codes) you must select "Vintage"
HTH
Holger
this depends on "Terminal -> Settings -> Command Prompt -> Appearance -> Color scheme"
to use the original cmd color scheme (matching the previous mention color codes) you must select "Vintage"
HTH
Holger
Make our planet great again