garyca
11-12-2003, 03:31 PM
I'm using MS Access 97 and shelling to a DOS window.
When the window autocloses, I need to proceed with my code.
Its the age old problem of halting code execution while waiting for an external process to complete.
cmdline = "c:\myexe.exe"
Shell (cmdline)
MsgBox "Click OK when processing window disappears from the task bar.", vbOKOnly
Now, obviously, I need to replace the msgbox with some DO-UNTIL loop that can check for window's presence.
When the window autocloses, I need to proceed with my code.
Its the age old problem of halting code execution while waiting for an external process to complete.
cmdline = "c:\myexe.exe"
Shell (cmdline)
MsgBox "Click OK when processing window disappears from the task bar.", vbOKOnly
Now, obviously, I need to replace the msgbox with some DO-UNTIL loop that can check for window's presence.