I'm trying to run a patch file every morning at 4am. For whatever reason, the lines in the batch file that use robocopy.exe are skipped. I've also tried xcopy and cp(from UnxUtils). The batch file works perfectly if I manually run it. When task schedule runs the batch file it hits every single line perfectly, but ignores the lines that use robocopy. There are other lines in the batch file that call other executables, and those work just fine.
I can't for the life of me figure out what is going on. I set up some logging in the batch file to make sure it was hitting all the points and it is. It just does not execute the robocopy lines.
Any help would be appreciated.