Chris, thanks again. That did the trick. If the command doesn't complete successfully, it returns an error code of 1. If it completes successfully it returns an error code of 0. Thanks.