How do I add a timer to a batch file?

batch-file, file, timer

Solution

Another method is to ping an invalid IP address for a certain amount of time:

PING 1.1.1.1 -n 1 -w 60000 >NUL

60000 = milliseconds

Problem

I want to make a batch file that waits for a few minutes, then executes a command. How would I do this? Specifically, I want it to end another program in 3 minutes after opening the file.

Original source