|
-
Apr 10th, 2001, 07:42 PM
#1
Thread Starter
PowerPoster
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
"It's cold gin time again ..."
Check out my website here.
-
May 8th, 2001, 05:57 AM
#2
Fanatic Member
you should be able to shell out using the waitforsingleobjectapi. On return if it succeeded then the return code will be 0 if it failed then the return code will be somthing else.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|