Page 1 of 1
Set default prompt
Posted: 11 Jun 2021 09:19
by findstr
Hello!
Code: Select all
PROMPT $E[48^;5^;104^;38^;5^;15m$D$G$E[0m$S
How can I make cmd.exe to run this code at startup to set the color prompt automatically every time I launch cmd.exe?
Windows 10
Thanks!
Re: Set default prompt
Posted: 11 Jun 2021 09:55
by T3RRY
findstr wrote: ↑11 Jun 2021 09:19
Hello!
Code: Select all
PROMPT $E[48^;5^;104^;38^;5^;15m$D$G$E[0m$S
How can I make cmd.exe to run this code at startup to set the color prompt automatically every time I launch cmd.exe?
Windows 10
Thanks!
Assuming you have either A) Cmd.exe pinned to the task bar or B) you use a shortcut to open cmd, you can edit the properties of the shortcut and change the target to:
Code: Select all
%windir%\system32\cmd.exe -cmd /k "PROMPT $E[48^;5^;104^;38^;5^;15m$D$G$E[0m$S"
Otherwise, you'll need to create a batch file containing the command and modify a Registry value. See:
https://stackoverflow.com/a/17405182/12343998