Skip to content

Instantly share code, notes, and snippets.

@santa4nt
Created November 3, 2010 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save santa4nt/661703 to your computer and use it in GitHub Desktop.
Save santa4nt/661703 to your computer and use it in GitHub Desktop.
A DOS script to "sleep" for a specified number of seconds.
call :sleep %~1
goto:eof
:: -----------------------------------------------------------------------------
:sleep
ping 127.1 -n 2 -w 1000 > NUL
ping 127.1 -n %~1 -w 1000 > NUL
goto:eof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment