6

I am attempting to create a batch file that runs an .exe, but kills said .exe after about 10 seconds (before it completes), then moves on to the next command in the file. Any help would be greatly appreciated.

mndrbbr
  • 95
  • 3
  • 6

1 Answers1

6

You can use this:

start program.exe
ping 127.0.0.1 -n 10
taskkill /im program.exe /f
rem continue here
echo Another command!
Bali C
  • 28,049
  • 34
  • 109
  • 147