Could not start the connection service on local computer
Error 1053: The service didn't respond to the start or control request in a timely fashion.
I use this command to create the service
Code: Select all
sc create connection type= own start= auto error= ignore binpath= "cmd.exe /c C:\batch_Tools\Check_connection.bat" displayname= "Connection Check"
This is the batch, it check for the internet connectivity if it is down it keep checking and when it find it, make vbscript that make the computer say a word
Code: Select all
@echo off
cls
mode 70,10
Title Connecting ...
Color 0c
:loop
If Exist "%temp%\voice.vbs" Del /Q "%temp%\voice.vbs"
ping www.google.com -n 1 -l 1 >nul
if %ERRORLEVEL%==0 (
Title Connected
call :voice
) else ( goto loop )
:voice
(
echo.Dim message, sapi
echo.message="Establishing Enternet Connection"
echo.Set sapi=CreateObject^("sapi.spvoice"^)
echo.sapi.Speak message
) >>%temp%\voice.vbs
call "%temp%\voice.vbs"
ping localhost -n 1 >nul
del /Q "%temp%\voice.vbs" >nul
any idea why the service refuse to start, i don't want to use the registry to launch the batch