[dba-Tech] Control IIS From a .BAT file

Bryan Carbonnell carbonnb at sympatico.ca
Thu Aug 28 19:06:12 CDT 2003


On 28 Aug 2003 at 19:39, Bryan Carbonnell wrote:

> Is it possible to start and stop IIS froma .bat file?

Never mind. I found it.

Here are my two bat files:

1. Stop Apache / Start IIS

# Stop Apache
net stop apache
#Start IIS
net start w3svc

2. Stop IIS / Start Apache

#Stop IIS
net stop iisadmin /y
#Start Apache
net start apache

--
Bryan Carbonnell - carbonnb at sympatico.ca
We're all here because we're not all there.




More information about the dba-Tech mailing list