Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 To: A QP
  Where is A QP?
 JHB
 South Africa
 A QP
 Tags
Subject: RE: Net Start , Net Stop
Thread ID: 50976 Message ID: 50982 # Views: 4 # Ratings: 0
Version: Not Applicable Category: Win32API programming
Date: Tuesday, September 07, 2004 5:04:46 PM         
   


> Hi All
> Does anyone know if there is a API call to start and stop a service?
> Thanks
> A

Hi,
I have not found one, but you can run the command with the /N7 switch like:
RUN /n7 net stop Messenger
RUN /n7 net start Messenger

The /n7 switch supresses the SYS window from popping up.

Pete from the Great White North. (Only in Canada, ay.) Over and Out ...


ENTIRE THREAD

Net Start , Net Stop Posted by A QP @ 9/7/2004 3:18:06 PM
RE: Net Start , Net Stop Posted by Pete Sass @ 9/7/2004 5:04:46 PM
RE: Net Start , Net Stop Posted by Yuri Rubinov @ 9/7/2004 5:41:24 PM
RE: Net Start , Net Stop Posted by Ken Blum @ 9/7/2004 6:02:49 PM
RE: Net Start , Net Stop "Yuri" Posted by Pete Sass @ 9/7/2004 6:46:53 PM
RE: Net Start , Net Stop "Yuri" Posted by Yuri Rubinov @ 9/7/2004 9:48:23 PM
RE: Net Start , Net Stop "Yuri" Posted by Mz @ 9/11/2004 5:41:50 AM
RE: Net Start , Net Stop "Yuri" Posted by Yuri Rubinov @ 9/11/2004 8:12:57 PM
RE: Net Start , Net Stop "A" Posted by A QP @ 9/13/2004 4:42:25 PM
RE: Net Start , Net Stop Posted by Yuri Rubinov @ 9/7/2004 9:43:06 PM
RE: Net Start , Net Stop Posted by Mz @ 9/9/2004 9:38:59 AM