meaning that you have supplied to parameters to cmd which won't work. You did this by isolating with single quotes for each parameter. Also since XCOPY is an executable of it's own you may not need CMD.EXE to run it.


Not tested but something like this

Code:
'xcopy "e:\data1\"+$folder+"\data\netscape\*.* e:\data1\"+$folder+"\data\Netscape7\ /d /e /c /y /h /r"'