Hello,
If you are using .NET, you can use:
ServiceController.Start()
ServiceController.Stop()
methods to start and stop a service.
For more information about these methods, please look them up in MSDN. You
have many other useful methods in the ServiceController class, and the
System.ServiceProcess namespace (where this class is located).
And as Doug said, you can also call "net stop" and "net start" to start and
stop services.
Hope this helps!
--
Regards,
Kristofer Gafvert - IIS MVP
<a style='text-decoration: underline;' href="http://www.ilopia.com" target="_blank">http://www.ilopia.com</a> - When you need help!
<vickaiser1.RemoveThis@yahoo.com> wrote in message
news:ccjuc01v5ud81g7hjonf1n2rhoj0brkhvo@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<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: start/stop services programatically