Detect when shellexecute operation has completed

  • Thread starter Thread starter Tony Vrolyk
  • Start date Start date
Tony Vrolyk said:
I am using Dev Ashish's function for opening a file with its default
application (http://www.mvps.org/access/api/api0018.htm) and was
wondering if there is a way to detect when the operatio has
completed, that is when the user closes the application.

I think you may have to call the Windows FindExecutable API function to
determine the path to the executable that is associated with the file,
and then use that information to call the Windows API to create a
process and wait for it, using code like that posted on the Access Web
at

http://www.mvps.org/access/api/api0004.htm
API: Shell and Wait

I haven't tried this, though.
 
Back
Top