How to get coloured file listing in windows cmd shell

shellwindows-command-promptwindows-xp

A few older ones in here will probably remember a cute little proggie from DOS days, hdir it was called. Did nothing special, except show the file and directory listing in colour.
(there were others that did the same thing, but I used this one, so remember its name).

Are there any such today which work under XP (long file names ?) ?

I know ls has a –color option, but the one I'm using from unixkit-tiny has some problems working under my shell, it just displays rubbish, i.e. I haven't been able to get it to work.

Example of rubbish:
←[0m←[01;34mafter←[0m ←[01;34mcolors←[0m ←[0mdiff.vim←[0m ←[01;34mdoc←[0m ←[01;34mftplugin←[0m ←[01;34mplugin←
[0m ←[0mprogram.f90←[0m
←[m"


Not sure whether this should've been posted here or on SO. Not sure who it concerns more.

Best Answer

You may want to check out NDIR.