Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Windows script, is there a command to pause the specified time? For example, there is a sleep command under Linux, which can stop the script for a few seconds and continue execution.
Windows script, is there a command to pause the specified time? For example, there is a sleep command under Linux, which can stop the script for a few seconds and continue execution.
You can do this in a VBS script:

WScript。 Sleep 3000

The unit of time is milliseconds, so the above sentence is a pause of 3 seconds.

Only ping command can be used to delay in DOS batch scripts (this time is very inaccurate). For example:

@ ping 127 . 0 . 0 . 1-N2-w 1000 & gt; empty

In addition, the Windows 2003 resource pack provides a sleep function, which you can download and install on the Microsoft website. Please see the link below.