Re: Automation Question: How do you stop a process from a .bat fil



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



.



Relevant Pages

  • Re: Sorry, but need more help
    ... the "demo.tcl" window (that is my script file name). ... >>activity on my part) that I could use some kind of message box to display ... > changes as the user moves the pointer". ...
    (comp.lang.tcl)
  • Re: FTP will not accept password from a batch file
    ... Bernard Cheah ... I did not delete the script file and took a look at it. ... I guess this FTP server doesn't like those blanks. ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: FTP will not accept password from a batch file
    ... I did not delete the script file and took a look at it. ... I guess this FTP server doesn't like those blanks. ... Ragnar ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: removing blanks from a file
    ... script file, and therefore it's not supposed to have blanks in it. ... 3D modeling something based on my calculations) and the problem is ...
    (comp.lang.fortran)
  • functions, scripts, workspace
    ... I want to display the results of a function in a script file instead of the command window so that the results can be an array in the workspace in order to import into another application. ...
    (comp.soft-sys.matlab)