>I need to start and stop an NT service based on events in a VFP app. Does anyone have any ideas on how to do this?
You can use ADSI for this. You can get a COM reference to the service and start and stop it at will.
oservice = getobject("WinNT://MyComputer/Myservice,service")
oservice.Start
oservice.Stop
Check out MSDN for more information.
http://msdn.microsoft.com/library/psdk/adsi/adsistartpage_7wrp.htm
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao