Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

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

share|improve this question

4 Answers 4

up vote 2 down vote accepted

You may want to check out NDIR.

share|improve this answer
Excellent ! Works like a charm under XP. – Rook Aug 9 '09 at 3:53

That rubbish is ANSI escape codes. I believe you can still load ansi.sys for the shell.

share|improve this answer
+1 for rubbish recognition. Although the process in the link works, under XP doesn't seem to supoort long file names, and ls doesn't seem to work under at all. If I try to reproduce the abovementioned process for cmd.exe, the "Programs" tab doesn't show. Although the process in the link works, the ls doesn't work under, and even if it did, it doesn't look like has the support for long file names. – Rook Jun 3 '09 at 1:56
(don't mind that last part, it's late and I'm repeating myself) – Rook Jun 3 '09 at 1:57
yah, you don't want to use the 16-bit a 32bit/64bit operating system. it runs like a pig, and is severely limited. it's just there for compatibility. – x0n Jun 13 '09 at 1:13
+A for rubbish recognition, which later described why this is not possible anymore under cmd. – Rook Jul 10 '09 at 17:08

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 UNIX find utility.

share|improve this answer
I prefer windows native versions of unix tools. Regarding the find utility, windows has one of their own. – Rook Jun 3 '09 at 1:59
The Windows native "find.exe" command is very different from the UNIX find command. There is no comparison, unless you're talking about a 3rd party native Windows find program. – Eddie Jun 3 '09 at 3:29
@Eddie - I'm sorry. Yes, that came out wrong. What I ment is, Windows has "find" of their own, but I prefer "find" in native version, ie unxutils version. – Rook Jun 3 '09 at 3:53
@Idigas: Ah, I've not used the unixutils myself, so I didn't think of that. Good point. – Eddie Jun 3 '09 at 18:30

I stopped using cmd.exe a long time ago and switched to 4NT (recently renamed to TCC - Take Command Console) - back when I switched didn't have command completion, etc.

Has good color support, arithmetic in scripts, etc. Recommended.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.