I have a batch file (actually it starts a java application, it's called
run.bat) and I need to run it as Windows Services.
I've created it using sc.exe tool:
sc create myService binPath= "c:\Dev\Java\run.bat" DisplayName=
myServiceAppl
Successfully created in Services but when I try starting it I get the
following error:
Error 1053: The service did not respond to the start or control request in a
timely fashion
Tried also converting run.bat to run.exe but I have the same error and also
tried writing a batch file without starting any java appl (like a simple
ping loop) and I ve the same error !
Any ideas ?
Thanks and best regards,
Alessandro
> Hi all,
>
> I have a batch file (actually it starts a java application, it's called
> run.bat) and I need to run it as Windows Services.
>
> I've created it using sc.exe tool:
>
> sc create myService binPath= "c:\Dev\Java\run.bat" DisplayName=
> myServiceAppl
>
> Successfully created in Services but when I try starting it I get the
> following error:
>
> Error 1053: The service did not respond to the start or control request in
> a timely fashion
Obviously: SC simply added the command to the services section of the
registry - since the command is not in fact a service type executable, it
doesn't run.
>
> Tried also converting run.bat to run.exe but I have the same error and
> also tried writing a batch file without starting any java appl (like a
> simple ping loop) and I ve the same error !
>
> Any ideas ?
<http://support.microsoft.com/kb/q243486/>
But why does it have to start as a service? Can't it simply be started in
as an item in a startup group?
--
T.E.D. (tda...@mst.edu) MST (Missouri University of Science and Technology)
used to be UMR (University of Missouri - Rolla).
HTH