Tutorial by Examples

Timeout The simplest way to make a delay or pause for a certain amount of time, is with the standard command TIMEOUT. To make a timeout that lasts exactly one minute we type: timeout /t 60 Now what is going on here? First off we use the command TIMEOUT with the parameter /T (which simply mea...
To make your script pause simply use the PAUSE command. PAUSE This will display the text Press any key to continue . . ., then add a newline on user input. Let's say we want to create a "Hello World" program and after we click something on our keyboard, we want it to exit the program ...
Ping One of the most used command to delay for a certain amount of time is ping. Basic usage PING -n 1 -w 1000 1.1.1.1 REM the -n 1 flag means to send 1 ping request. REM the -w 1000 means when the IP(1.1.1.1) does not respond, go to the next command REM 1.1.1.1 is an non-existing IP so th...
Sleep On older Windows system, timeout is not available. However, we can use the sleep command. Usage sleep 1 Very self-explanatory; sleep for 1 second. However, sleep is a deperacted command and should be replaced by timeout. Availability This command is available on old Windows system. ...

Page 1 of 1