Probably one of the executed commands returns with a non-zero code.
Unfortunately there is no documentation for the return codes of the VS tools but you can check them using the VS console or by printing them out in the build step:
copy /y "$(SolutionDir)Libs\MotionDetect.dll" "$(SolutionDir)$(ConfigurationName)"
echo %ERRORLEVEL%
call editbin.exe /LARGEADDRESSAWARE SER.EXE > recpost.txt
echo %ERRORLEVEL%
call dumpbin.exe /HEADERS SER.EXE > recpost1.txt
echo %ERRORLEVEL%
If you want to ignore errors, just reset the
errorlevel
after the command:
SET ERRORLEVEL=0