Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

windows script to run after a specific time

I am wondering if there is any command for windows script that makes the execution of the script halt for some time before continuing executing it?

e.g: run the first two commands in a script, wait 10 seconds then continue executing

Thanks

like image 603
user2566898 Avatar asked Feb 01 '26 00:02

user2566898


1 Answers

I guess you are looking for timeout command.

@echo off

command1
REM wait for 10 seconds before executing command2
timeout /t 10
command2

Hope this helps.

like image 65
Dale Avatar answered Feb 02 '26 13:02

Dale



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!