Home NT WSH
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 or greater

"Success isn't permanent, and failure isn't fatal" - Mike Ditka

Related commands:


Equivalent Windows NT command:

SLEEP - Wait for x seconds



Back to the Top

Simon Sheppard
SS64.com