btw,

here is a sample of how to check not the errorlevel of rcmd (1=OK) in a Script but the errorlevel of the passed command !

code:

shell '%ComSpec% /c (rcmd \\' + $Server + ' "tlist") | find /i "robocopy" > %0\..\tools\dummy.txt'
if @error = 1 ;there is no task called robocopy
'robocopy has been finished' ?
else
'robocopy still runs' ?
endif

_________________________