Note one can use environment variables like %USERNAME% or %COMPUTERNAME% in the prompt.[HKEY_LOCAL_MACHINE \SYSTEM \CurrentControlSet \Control \Session Manager\ Environment]
PROMPT = "$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 /?.PROMPT [%computername%] $P$G
Related Change the color of the command prompt
Related Change the font of the command prompt
Credits regedit.com
Leave a Reply