my-command with parameters && (
echo - my-command completed successfuly
(call)
) || (
echo - my-command failed
)
echo - finally
REM suppress 'some.file not found' message
del %TEMP%\some.file /Q 2> nul
REM redirect 'some.file not found' message to errors.log
del %TEMP%\some.file /Q 2> errors.log
REM redirect all outputs to delete.log
del %TEMP%\some.file 1> delete.log 2>&1