@ECHO OFF REM --------------------------------------------- REM Batch file to restart SageTV REM --------------------------------------------- REM --------------------------------------------- REM Stop the SageTV service REM --------------------------------------------- net stop "SageTV" REM --------------------------------------------- REM Ping an unused local IP address. This acts as REM a delay. Do it 8 times (-n 8), waiting 1000ms REM (w 1000) between each ping attempt. Giving a REM total wait of 8 seconds. REM --------------------------------------------- ping 192.168.0.255 -n 8 -w 1000 > nul REM --------------------------------------------- REM Start the SageTV service REM --------------------------------------------- net start "SageTV" pause