Lon,

That did not work either. I'm now trying a different angle on this (redirectouput), but the output is still going to the screen. I'm using the following:

$command = "xcopy c:\data " + $drv + $uname + "\data /e /i /h"
$null = redirectoutput($drv + $uname + "\copied.log")
shell "$command"
redirectoutput("")

The log file is being created, but it is empty. The big list of files being copied are still dumped to the screen.

Am I doing something wrong? I hope that it is possible to create log files.

../mk