start & stop IIS, WWW service 
Author Message
 start & stop IIS, WWW service

Hi there,

Does anyone know how to start/stop the IIS, WWW & SMTP service from within a
VB6 program ?

Thanks a lot for any help



Mon, 02 May 2005 23:25:16 GMT  
 start & stop IIS, WWW service

Hi there,

Does anyone know how to start/stop the IIS, WWW & SMTP service from within a
VB6 program ?

Try the following code example:

ftp://ftp.trinet.co.uk/codesamples/cservice.zip

Keep in mind you need the appropriate permissions to do this.


Microsoft MVP (Visual Basic)



Tue, 03 May 2005 04:58:33 GMT  
 start & stop IIS, WWW service

Quote:
> Does anyone know how to start/stop the IIS, WWW & SMTP service from
> within a VB6 program ?

You can execute NET STOP/START:

Shell "NET STOP IISADMIN"

--
Eduardo A. Morcillo [MS MVP VB]
http://www.domaindlx.com/e_morcillo



Tue, 03 May 2005 04:46:12 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. start & stop IIS & WWW service

2. Code for Starting & Stopping Services

3. Start, Stop, Reset IIS

4. IIS 3.0 Services Stop????

5. How in the &^#$&%#^%@# do you kill or stop or undo a started .AddNew event

6. Made a service, it starts, then stops

7. Starting and Stopping Services

8. VB.Net Service Qustion: Detecting Program Start/Stop

9. To start and stop a service

10. Stopping/Starting Windows NT Services

11. Starting and stopping exsiting services

12. STOPPING/STARTING SERVICES FROM VB

 

 
Powered by phpBB® Forum Software