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 the -w flag can ping a delay and go to next command
This would output the following on your batch file/console:
C:\Foo\Bar\Baz>ping -n -w 1000 1.1.1.1
Pinging 1.1.1.1 (Using 32 bytes of data)
Request timed out
Ping statistics for 1.1.1.1
Packets: Sent = 2,Received = 0, Lost = 1(100% loss)
Hide the text echoed out
Just add >nul
at the back of the command to redirect it to null.
ping -n w 1000 1.1.1.1 >nul
This would output nothing.