Windows batch: sleep

batch-file, scripting, shell, windows

Solution

You can try

ping -n XXX 127.0.0.1 >nul

where XXX is the number of seconds to wait, plus one.

Problem

How do I get a Windows batch script to wait a few seconds? `sleep` and `wait` don't seem to work (unrecognized command).

Original source

Related problems