in reply to Running or not running

is there a way to determine if a certain batch file is being executed
ps
if the execution has completed successfully
Check the exit value.

Abigail