How Can I Let a VB MOM Script “Sleep”?
Goto the MOM Home Page
 
Does anyone know how you can let a script (in vbs) "sleep" for some seconds in MOM? "WScript.Sleep 1000" doesn't work, because the WScript commando's are not supported in MOM.

Contributed By: Michael T La Rivière {MS}
Procedures like this should NOT be used to pause MOM scripts. The MOM Utility object provides a Sleep method for creating delays. It is documented in the SP1 online help.

There's a big difference between pausing a process and keeping it frantically busy with a loop. The Delay procedure retrieves the current date/time several hundred thousand times during each second. If you run this outside of MOM in a regular WSH script, you can open task manager and watch the CPU use jump to nearly 100% while it is running!
 

© FAQShop.com 2003 - 2008

Goto the MOM Home Page

Email the Author