I am attempting to used the command:

shell "xcopy c:\data " + $drv + $uname + "\data /e /i /h > " + $drv + $uname + "\copied.log"

but am getting the error "Invalid number of parameters.". However, when I replace 'shell' with '?' so that I can see what the output is, it looks great and works great when ran on the commandline.

Any ideas? Is there a limit of chars that the 'shell' command can issue?

../mk