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?
 
Erick37Connect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.