In reply to:

Is it possible that it's a difference between cmd.exe and command.com?




Yes, command is more or less the 16 bit DOS command interpreter, where as cmd.exe is the 32bit version for WinNT based systems. Most of the time the differences don't matter, but sometimes they do.

--Nathan