How to check the Task ID is still running through a Visual Basic c

P

Phesunov

From an Access DB, I'm using Visual Basic to launch an external program via
Shell call which returns the Task ID for that external program. The external
program self-terminates but it may take between 1 and 15 seconds to complete

What I'm looking for is a visual basic command that checks if a given Task
ID is still active. Therefore I can use some coded logic to wait before
moving on to the next step. Currently I'm using a message box to halt the
Access program flow until the other program disappears.

Any help would be appreciated.
 
K

Karl E. Peterson

Phesunov said:
From an Access DB, I'm using Visual Basic to launch an external
program via Shell call which returns the Task ID for that external
program. The external program self-terminates but it may take
between 1 and 15 seconds to complete

What I'm looking for is a visual basic command that checks if a given
Task ID is still active. Therefore I can use some coded logic to
wait before moving on to the next step. Currently I'm using a
message box to halt the Access program flow until the other program
disappears.

Take a look here: http://vb.mvps.org/samples/Shell32
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top