I am executing a DOS program from my VB app (as an alternative to Shell, I am using various API processes that I found on this forum to make it run synchronously). That part is fine. What I haven't yet been able to find is the necessary to code to read a return code back from this program (for example, if I was running a DOS BAT file, I could test this return code with ErrorLevel). Can I do the equivalent of test for errorlevel in my VB app? TIA