I tried to pipe the output of xcopy to a file. But unfortunately I get the following error message:

C:\Test>kix32 test.kix
Script error : unknown command !.
shell "xcopy c:\winnt\*.* c:\wintmp\ /s /v /e >$LogFile 2>&1"

My test script looks like:

$LogFile = "c:\test\Test.log
shell "xcopy c:\winnt\*.* c:\wintmp\ /s /v /e >$LogFile 2>&1"
exit

I also tried without the parameters 2>&1 because there is already a question concerning this problem.

I general, I have the same problem when I'm using DOS NET USE or kix USE. I just want to send this outputs to a logfile. Is there someone how can help me?

Thank you for your answer.
Manuel