Two ways to simulate "sleep" in windows command line

command line

First way is to use the ping command like this:

ping 127.0.0.1 -n X > nul

where X is the number of seconds to wait.

Another is to use the timeout command:

timeout X > nul

Post a Comment

Previous Post Next Post