batch-file Add delay to Batch file Sleep

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example


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. Also SLEEP.exe is included in 2003 Resource Kit.

To use sleep.exe, put the executable file to %Windir%\System32 folder. Then you can use it as normal command.



Got any batch-file Question?