The question is similar to one already posted. I need to know how I can run an exe file "synchronously" from VB (not return to VB till the new application that I am launching terminates). In addition, I need to trap the code returned by the application I launched. I can use Shell to launch the application, but all that gives me is an AppId. I do not want to do a "busy wait" till the new application exits, and even if I do decide to wait in a loop till the application exits, how do I trap the return code?