Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get Script to continue on without waiting for return of Functio

Status
Not open for further replies.

pghTech

Technical User
Jul 19, 2006
37
US
If I wanted a script to run and call a function that is recursive (possibly) that would allow it to monitor processes running keeping an eye out for a process, and if found kill the process, but the script continuing on?

I know how to kill a process, collect a collection and do the many options there is to do with processes or say services. Will scripts wait for a "sub" to finish before it continues on since it doesn't allow returned values?

I want to write a function that gets started and runs along monitoring until a certain condition is met, but allow the script to continue running the next set of instructions.
 
Why not .Run another script asynchronously ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Hmmm... not really familiar with VBscript, but you might want to research if there is a Do Events (yields to other processes) that you might reference like in VBA.

Guessing wildly is fun...

Tom

Live once die twice; live twice die once.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top