The comment:

btw: we think NTDOC was forgotten to type /c switch in run and shell
command.

True...
I tried this code from a command prompt not a logon batch call of a KiXtart script. It does work from a command prompt without the /c (I think /c is the default behavior on 2000 anyways).

and I did mention that it is not bullet proof. Did not test, but from past experience, I would say that MCA's code would be more bullet proof then my sample.