Suspend the execution of the current script for the specified number of milliseconds.
Syntax WScript.Sleep lngTime Arguments: lngTime is the delay in milliseconds
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
“Success isn't permanent, and failure isn't fatal” ~ Mike Ditka
Equivalent Windows CMD commands: SLEEP - Wait for x seconds, WAITFOR - Wait for or send a signal.
Equivalent Powershell command: Start-sleep
© Copyright SS64.com 1999-2013
Some rights reserved