# DOSKEY macros (after all these years)

#### vefatica

Perhaps this is well known but I hadn't thought about it in many years. They still exist! IIRC, I had just discovered doskey macros when I discovered 4DOS.

#### mfarah

Perhaps this is well known but I hadn't thought about it in many years. They still exist! IIRC, I had just discovered doskey macros when I discovered 4DOS.

Me too! And me too! Colour me surprised.

#### samintz

##### Scott Mintz
I have a file named autoexec.cmd in my profile directory (C:\Users\mintz) that runs whenever CMD is started. I use it to colorize my PROMPT.
It contains 1 line currently: @prompt=\$e[37;44;1m[\$P]\$e[33;40;1m\$s

I assume the HKLM entry you use is not user specific.

#### vefatica

I have a file named autoexec.cmd in my profile directory (C:\Users\mintz) that runs whenever CMD is started. I use it to colorize my PROMPT.
It contains 1 line currently: @prompt=\$e[37;44;1m[\$P]\$e[33;40;1m\$s

I assume the HKLM entry you use is not user specific.
I put it in the user environment. Both TCC and CMD use it.
Code:
``````v:\> set /u prompt
\$e[32;1m\$p\$g\$s\$e[0m``````

HKCU (the rest the same) also works. That would be user-specific.

#### samintz

##### Scott Mintz
I colorize it differently for TCC vs CMD.