[Batch] start programm, wait, close programm and redo after 60sec ?!

08/06/2013 07:30 im_TR0N#1
Hallo

ich versuche gerade mit Batch das im Titel genannte zu erreichen.

Soweit bin ich schon:

Code:
@echo off
cls
:start
START "Mozilla Firefox" /wait "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
@ping -n 10 localhost> nul
TASKKILL /F /IM "firefox.exe"
goto start
Nur leider funktioniert es nicht wie ich es will, jemand eine Idee?
08/06/2013 16:09 kissein#2
sollte so funktionieren

Code:
@echo off
cls
:start
START "Mozilla Firefox" "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
@ping -n 10 localhost > nul
TASKKILL /F /IM "firefox.exe"
GOTO start