sleep для Windows
[ Скачать с сервера (2.5 Kb) ]02.04.2019, 09:40

Задержка на несколько секунд выполнения потока команд

SLEEP.exe (2003 Resource Kit)

Delay execution for a few seconds/minutes (for use within a batch file.)

Syntax
      SLEEP time

Key
   time  The number of seconds to pause

Example
Pause for 10 seconds before running the next command in a batch file:

SLEEP 10

Alternative
A delay can also be produced by the PING command with a loopback address (127.0.0.1), in tests this consumes less processor time than Sleep.exe or Timeout.exe:

e.g. for a delay of 30 seconds:
PING -n 31 127.0.0.1>nul

See Clay Calvert's newsgroup posting for a full explanation of this technique.

“O sleep, O gentle sleep, nature's soft nurse, how have I frighted thee, that thou no more wilt weigh my eyelids down, and steep my senses in forgetfulness” ~ Shakespeare (Henry IV)

Related:

TIMEOUT - Delay execution for a few seconds/minutes (for use within a batch file.)
WAIT - the same as sleep but with noises
WAITFOR - Wait for or send a signal.
WScript.Sleep - Sleep
Powershell: Start-Sleep - Suspend shell, script, or runspace activity (sleep)
Equivalent bash command: sleep - Delay for a specified time


sleep.rar MD5: 52E61BE983AF89F2D882B42507F439D0
sleep.exe MD5: 3966FBBA168463FD59FBEBAACE710B1C

 

Категория: утилиты | Добавил: ae999
Просмотров: 389 | Загрузок: 17