Catching errorlevel from old dos app
Posted: Tue May 16, 2006 1:54 pm
Hello all
How can I determine what error code a dos app returns. I’m using the blat command line mailer. When the email doesn’t get sent the app returns an non zero errorlevel code. Is there a way to get that code without writing a second app to trap it and pass it along to the main app through a file or something. For exaple
Also can the command be passed to WaitRun through a var.
Thank you
How can I determine what error code a dos app returns. I’m using the blat command line mailer. When the email doesn’t get sent the app returns an non zero errorlevel code. Is there a way to get that code without writing a second app to trap it and pass it along to the main app through a file or something. For exaple
Code: Select all
nError := WaitRun(‘BLAT.EXE .\BODY.HTM –s “Test email 11” –t dummy@dummy.dum –html -noh2 –try 3’)
Thank you