Scheduled task last result 0x2

Problem | A scheduled task running a command shell is returning “last result 0x2” but everything is fine.

Reason | The last command within the batch is returning an errorlevel <>; 0. This could be robocopy ending with skipped files.

Solution | Run error level checks within your batch and if all is ok set errorlevel to 0

set errorlevel=0
This entry was posted in Information Technology, Uncategorized and tagged . Bookmark the permalink.

Comments are closed.