To enable ANSI control codes in command.com, add the following line to %SystemRoot%\system32\CONFIG.NT:

DEVICE=%SystemRoot%\system32\ANSI.SYS