|
-
November 15th, 1999, 02:45 PM
#1
Stopping Services
Hi,
I am trying to stop some of the Windows NT Services running on the local server from my VB application using the following command.
lRetVal = WinExec("NET STOP MyService", 0)
But "MyService" is a Windows NT service which has "MyOtherService" as a dependant service. Since "MyOtherService" is still running, I am not able to stop "MyService". Well I could resolve this by first stopping "MyOtherService" and then stopping "MyService". But, I do not know at this point which are the other services that are dependent on "MyService". Hence the request for expert opinion.
Thanks,
Ashley
-
March 30th, 2001, 03:51 AM
#2
Re: Stopping Services
Hi,
actually i wants to start/stop a service using VB application so can u plz tell me how to do that.
Expecting detailed soln as i m beginner
rgds
:-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|