Re: start/stop services programatically

From: Curt_C [MVP] (software_AT_darkfalz.com)
Date: 06/15/04


Date: Tue, 15 Jun 2004 15:59:26 -0500

bunch of ways to call the command. Look/search for calling an EXE, same
principle.
Now, to get a list of running services, Don't know off the top of my head
but if you google it you should get something. Try www.4guysfromrolla.com
I'd bet they got something, otherwise www.asp.net should.

-- 
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Vic" <vickaiser1@yahoo.com> wrote in message
news:tcJzc.6157$g97.488@newssvr24.news.prodigy.com...
> this leads me to a couple of other questions.  How can I do this within a
C#
> method?  Also, is there a way to collect the names of the <service>'s that
I
> need to stop, especially those using the MetaBase.xml file.
>
> "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
> news:O8CTbGxUEHA.1888@TK2MSFTNGP11.phx.gbl...
> > call the command line
> > "net stop <service>" and
> > "net start <service>"
> >
> > -- 
> > Curt Christianson
> > Owner/Lead Developer, DF-Software
> > Site: http://www.Darkfalz.com
> > Blog: http://blog.Darkfalz.com
> >
> >
> > <vickaiser1@yahoo.com> wrote in message
> > news:89juc05qfq24r8f3lf1so9tq6udlcc2af8@4ax.com...
> > > I am creating a setup project for an application and need to edit the
> > > Metabase.xml file during setup.  Does anyone know of a way to stop and
> > > then restart services programatically before and after I edit this
> > > file?
> > >
> > > Vic
> >
> >
>
>


Relevant Pages

  • Re: Access user input from command line
    ... I am trying to create a GUI with an edit box for user input ... below) in the command prompt or through other m files (I get ... % hObject handle to figure ...
    (comp.soft-sys.matlab)
  • Re: bug? cannot get value of cell on invisible column
    ... I just didnt want it to be editable when the EDIT button was selected based on previous experience with Borland C++ where editing or renameing a key required it to be propagated to all the tables. ... I mentioned that the same problem show up in postgreseql but I cannot find my comment anywhere and suspect they ignore closed cases. ... Then I made the column visible but the field readonly and that caused the sql "update" command to fail as the update command skipped over that "id" field and put "authString" where id was supposed to go causing an exception on the sqlserver. ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • "edit" function in cmd Windows XP SP3
    ... One or more CON code pages invalid for given keyboard code ... The KEYB command examined all prepared code pages, ... When trying to edit text using the "edit" command all text is coming out as ...
    (microsoft.public.windowsxp.general)
  • Re: [SLE] MySQL Table Locked?
    ... I tried to edit the table again, ... Run this command from the commandline as root: ... I'll describe the basic structure of my database, ... >> Check the headers for your unsubscription address ...
    (SuSE)
  • Re: Launching EQW on a 48
    ... Do you mean to display (and edit) an existing algebraic, ... to add an EDITB command to an old "48" ... "ViewLevel1" is not phased by any object type, ...
    (comp.sys.hp48)