DOS: creative WAIT command

categories Computer, Tutorials    

Maybe you’ve encountered this before: there is no direct way to add a simple command like WAIT x seconds in DOS. While forging an easy solution for a simple task, I’ve found a nice, create way of solving this:

PING -n 1 -w 25000 >nul

Yes, indeed. The PING-command is used to wait.

A few additional explanations:

Of course, usually I try to avoid using a WAIT-operation in scripts at all, and this ain’t a very exact technique. It simply does the job for most tasks where a WAIT-command might be required.