Re: Automation Question: How do you stop a process from a .bat fil
- From: mickey <mickey@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 5 Aug 2008 07:08:00 -0700
I verified that XNETS is the name of the service, which does work in the
script file.
Thanks for your suggestion.
Mick
"Klaus Jorgensen" wrote:
mickey laid this down on his screen :.
I have created a .bat file that successfully launches the application,
however I can't seem to stop the service.
The command I'm using is NET STOP service, but no matter how I reference the
service I get an error. The name of the service is XNETS.exe
Here's what I've tried:
NET STOP XNETS.exe; error can find service
XNETS.exe is the name of the executable - not necessarily the service
name. The service name is shown in the list of services; right-click on
a service and click properties, then the service name (and it's display
name) is shown. If the service name has blanks in it, you'll have to
use double quotation marks in the "net stop" command - e.g.:
net stop "service name"
--
/klaus
- Follow-Ups:
- References:
- Re: Automation Question: How do you stop a process from a .bat file?
- From: Klaus Jorgensen
- Re: Automation Question: How do you stop a process from a .bat file?
- Prev by Date: Re: Automation Question: How do you stop a process from a .bat file?
- Next by Date: Re: Automation Question: How do you stop a process from a .bat fil
- Previous by thread: Re: Automation Question: How do you stop a process from a .bat file?
- Next by thread: Re: Automation Question: How do you stop a process from a .bat fil
- Index(es):
Relevant Pages
|