
Redirecting run command line output from VBScript
Hello all,
I having a problem in one of my scripts when I try to run XCopy as a
shell command and redirect the output of it to a log file.
If the command is just
XCopy [source] [destination] [options]
then it works fine, but if the command is
XCopy [source] [destination] [options] >> [Log File]
it gives me an error code of 4 and doesn't run.
Is there a reason for this (i.e. is it a security precaution) or???
Thanks in advance,
Kevin