NET START Help

K

Kienl

I'm unable to get a third party application service to
start using a DOS script and the NET START command.
However, I can manually start the service from the
Services applet without a problem. There aren't any
dependencies on the service that I'm trying to start. Is
there a way to increase the time allowed for the command
to run before NET START reports that it can't start the
service? (The error is "More help is available by typing
NET HELPMSG 3534.") Can anyone provide examples of a
different scripting language that can get start/stop
services and delete some log files?

Thanks for your help.
 
D

David Wang [Msft]

How long does this service take to start?

The Services API defines an interface between the service caller and the
service itself. The service is able to tell its caller (NET.EXE) how long
to wait and is responsible for updating checkpoint timers to keep the wait
going. Thus, I think the problem is that this service is "broken" (it needs
more time but doesn't tell its caller), so it makes the caller think it's
taking too long to start. I'm not aware of any switches for NET.EXE
concerning the wait time since this value is obtained from the service
itself.

You can use WMI to select, start, and stop services, but WMI won't wait for
the service to actually start/stop before returning -- so you'll need to do
that. But, since this 3rd party service doesn't update its checkpoint, your
waiting will have a failing logic as well.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
I'm unable to get a third party application service to
start using a DOS script and the NET START command.
However, I can manually start the service from the
Services applet without a problem. There aren't any
dependencies on the service that I'm trying to start. Is
there a way to increase the time allowed for the command
to run before NET START reports that it can't start the
service? (The error is "More help is available by typing
NET HELPMSG 3534.") Can anyone provide examples of a
different scripting language that can get start/stop
services and delete some log files?

Thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top