Any idea why I would get this error using this code below?

Code:
  
$mydocuments=ReadValue("HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Personal")
$cmd='$installfolder\xxcopy "'+$mydocuments+'" "'+$udocuments+'" /bi /s /yy /oa$uxxcopylog'
? 'Executing : '+$cmd
Shell '%COMSPEC% /c '+$cmd
If @error <>0
$writelog = WriteLog2($logfile,"@USERID on @WKSTA with @serror My Documents Copy",1)
EndIf

_________________________
I could have made a neat retort but didn't, for I was flurried and didn't think of it till I was downstairs.
-Mark Twain