WScript.Sleep

Suspend the execution of the current script for the specified number of milliseconds.
Syntax
WScript.Sleep lngTime

Arguments:
lngTime is the delay in milliseconds


Example

WScript.Sleep(5000)
WScript.Echo("5 seconds have passed.")

Note - early versions of this function were buggy, use WSH 5.6 (Win XP) or greater 

Make a Free Website with Yola.