Return value of external executed program

I would like to know how to obtain the return value of a program executed through the 'exec' command in VB. The command returns only a process ID.Please advise.
LVL 2
gsatsanAsked:
Who is Participating?
 
Erick37Commented:
Use the GetExitCodeProcess API:

"HOWTO: 32-Bit App Can Determine When a Shelled Process Ends"

http://support.microsoft.com/support/kb/articles/Q129/7/96.asp
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.