Discussion:
Wait already running process to terminate ?
(too old to reply)
Vilius Mockûnas
2009-08-21 04:58:19 UTC
Permalink
Hello,

I want ot write vbscript which waits some process to finish and then
executes action.
This script does not create target process(process is already running) so I
can't use wsh_shell.run and similar methods.

What is the simplest way to monitor some process to finish and then do an
action ?

thanks
Vilius
Pegasus [MVP]
2009-08-21 10:32:05 UTC
Permalink
Post by Vilius Mockûnas
Hello,
I want ot write vbscript which waits some process to finish and then
executes action.
This script does not create target process(process is already running) so
I can't use wsh_shell.run and similar methods.
What is the simplest way to monitor some process to finish and then do an
action ?
thanks
Vilius
Answered in detail one week ago in the thread "Determine when a process
starts and stops". It often pays to check existing posts before starting a
new thread.
Paul Randall
2009-08-21 12:20:52 UTC
Permalink
Post by Vilius Mockûnas
Hello,
I want ot write vbscript which waits some process to finish and then
executes action.
This script does not create target process(process is already running) so
I can't use wsh_shell.run and similar methods.
What is the simplest way to monitor some process to finish and then do an
action ?
thanks
Vilius
Groups.google.com is one of the best ways to search newsgroups. Advanced
gives you lots of options to narrow the search so you get the most useful
hits. After you have used advanced groups search for a while, you may learn
how to just use the main groups.google.com search box to get what you want.
For example, if you copy/paste the following line into the search box at the
main groups.google.com window:
wait process finish group:*.scripting.vbscript
you should find what you are looking for.

-Paul Randall

Loading...