Small utility for batch files–Waiting X seconds between commands

by Dmitry Kirsanov 21. March 2018 16:25

Alright, here is a bit embarrassing release, because this application is just 45 lines long. That’s including blank ones. This little tool is for using in batch (.bat or .cmd) files so that you could wait X seconds between issuing commands. It’s printing the countdown and then exits.

I would like to thank Microsoft for making this lifetime project possible. Without them it wouldn’t be.

Usage:

wait.exe [X]
where X is number of seconds to wait, e.g. wait 5

The app is compiled for .NET Framework 4 Client Profile, so it’s compatible with Windows XP and up. Zip file contains both binary and source file.

Note:

If you are using Windows 7 or up, you can simply type “timeout 5” in your batch file to wait 4-5 seconds. Yes, it’s not as precise as this amazing tool, but do we really need it to be? In Windows XP, there is no timeout alternative, so using of this tool is reasonable.

wait.zip (3.22 kb)

Tags:

blog comments powered by Disqus

Month List