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.
相关问题
- What is the best way to do a search in a large fil
- Spring Integration - Inbound file endpoint. How to
- xcopy include folder
- Batch file if string starts by
- Jenkins - cmd is not recognized
相关文章
- What is the correct way to declare and use a FILE
- Making new files automatically executable?
- Extracting columns from text file using Perl one-l
- How to serialize data into indented json [duplicat
- Creating a custom file like object python suggesti
- How can one batch file get the exit code of anothe
- Sorting a data stream before writing to file in no
- How to make jenkins fail at a failing windows batc
Use
timeout
. That will let you wait for a number of seconds given in it's/t
parameter.timeout /t 180
will sleep for 3 minutes (180 seconds).Another method is to ping an invalid IP address for a certain amount of time:
60000 = milliseconds
hi i love stockoverflow but sometimes the answers are too concise... so heres more than you asked for... the timer and many other snipits
hope you really enjoy this answer
Simple, try this