>Ayone know how to get synchronos execution out of "ShellExecute" in NT? I have it working fabu in Win9x. But NT plays by NT's rules. :)
>
>I have re-uploaded the shellwait.zip to handle NT. But, it doesn't wait in NT. asynchronos operations only. Help would be appreciated.
Pick up a copy of Dan Appleman's book on using the Win32 API from VB (he's actually gor several now) - he gives example code that looks similar to the code I use in API_APPRUN to do a launch app and wait using CreateProcess() and a couple of the sync APIs. You'd want to use ShellExecuteEx() to launch the app rather than ShhellExecute(), in order to get back the process handle rather than a pseudohandle that can't be used to check the Win32 task object for temrination.