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.
That rubbish is ANSI escape codes. I believe you can still load ansi.sys for the command.com shell.
You may want to check out NDIR.
The way I do this is to use Cygwin's
ls
. It's more heavy-weight than you're talking about, but there are other benefits, such as the availability of the UNIXfind
utility.I stopped using
cmd.exe
a long time ago and switched to 4NT (recently renamed to TCC - Take Command Console) - back when I switchedcommand.com
didn't have command completion, etc.Has good color support, arithmetic in scripts, etc. Recommended.