@echo off title Restart Collector OnTime :while taskkill /f /im Collector.exe start Collector.exe set d=%date:~0,10% set t=%time:~0,8% echo restart Collector success,%d% %t% choice /t 12 /d y /n >nul goto :while
@echo off title Restart Collector OnTime :while taskkill /f /im Collector.exe start Collector.exe set d=%date:~0,10% set t=%time:~0,8% echo restart Collector success,%d% %t% choice /t 12 /d y /n >nul goto :while