Change look of the command prompt in Windows NT

Like one could change the DOS Prompt one is also able to change the command prompt (cmd.exe) console. Instead of doing it in the AUTOEXEC.BAT then it is done with an environment variable :

[HKEY_LOCAL_MACHINE \SYSTEM \CurrentControlSet \Control \Session Manager\ Environment]
PROMPT = ā€œ$P$Gā€

Note one can use environment variables like %USERNAME% or %COMPUTERNAME% in the prompt.

PROMPT [%computername%] $P$G

Note one can change the prompt after starting the cmd. To reset just write PROMPT with no parameters. To see all parameters write PROMPT /?.

Related Change the color of the command prompt
Related Change the font of the command prompt