How To Wait Batch File

You can use timeout command to wait for command prompt or batch script for the specified amount of time.
How to wait batch file. At any time you can right click your batch file and click edit in the resulting drop down menu. The time is defined in seconds. Start sleep 10 wait 10 seconds. At this point you can make any changes and then save the file by pressing ctrl s.
If you are writing a batch file and you don t want to continue until somebody presses a key you can do it really easy with the timeout command. Click file then click save as. Start sleep seconds 2 7 wait 3 seconds rounded to integer. Select a save location then click save.
Start sleep seconds 10 wait 10 seconds. Batch wait with ping command although pc pauses the command execution for x seconds when you use timeout command it still consumes quite a lot of the cpu load. For example to wait for 5 seconds use. Ping command with a loopback address 127 0 0 1 could also produce the 1 second delay between each consecutive ping and it consumes less cpu load.
Type in your file s name followed by bat e g my batch file would become my batch file bat. The changes will immediately be reflected when you run the batch file. Click the save as type drop down box then click all files. Ping bat wait example.