Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Wait already running process to terminate ?

Reply
 
Old 08-21-2009   #1 (permalink)
Vilius Mockûnas


 
 

Wait already running process to terminate ?

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



My System SpecsSystem Spec
Old 08-21-2009   #2 (permalink)
Pegasus [MVP]


 
 

Re: Wait already running process to terminate ?


"Vilius Mockûnas" <v_mockunas@xxxxxx> wrote in message
news:%23KoNsvhIKHA.5956@xxxxxx
Quote:

> 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.


My System SpecsSystem Spec
Old 08-21-2009   #3 (permalink)
Paul Randall


 
 

Re: Wait already running process to terminate ?


"Vilius Mockûnas" <v_mockunas@xxxxxx> wrote in message
news:%23KoNsvhIKHA.5956@xxxxxx
Quote:

> 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


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
open a file, wait for user to amend file, close & process PowerShell
How to terminate a Win32 process without using "winmgmts:" VB Script
How can I get information about running process? PowerShell
Terminate Process Problem with Option Explicit Breaks functionality VB Script
Terminate process issue VB Script


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46