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 

Sleep is a wscript method.

Examples

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

“Success isn't permanent, and failure isn't fatal” ~ Mike Ditka

Related VBScript commands

Equivalent Windows CMD commands: SLEEP - Wait for x seconds, WAITFOR - Wait for or send a signal.
Equivalent PowerShell cmdlet: Start-sleep


 
Copyright © 1999-2024 SS64.com
Some rights reserved