Well … it is as the exec You are attempting to run miss of environment and/or dependencies the Windows user with which the agent is running ( by default the Local System Account ) cannot know by itself …
I presume the Event Viewer should track the attempt to run that exec and help You in troubleshooting …
A few things …
You’re creating the directory “CEMLog” (no “s” at the end) and then copying to “CEMLogs”.
You should also not have a trailing backslash on the xcopy command for the target directory.
You should not mix the use of ‘dos’ commands with ‘waithidden’, so either use ‘dos xcopy’ or ‘waithidden cmd /c’, but not both.
You probably should not use the ‘dos’ family of commands, those are (I believe) deprecated in favor of ‘waithidden’.
And you may be encountering a problem with ‘waithidden’ and multiple quoted command-line parameters. I’ve had problems with that before. The easiest workaround is to create a batch file and execute it, so you don’t have to worry about the quoted parameters. It may be possible to rewrite the xcopy command as