Apache and Mysql as services

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Just for those that don't know, An easy way to start and stop windows  
services such as apache and mysql if you don't want them to automatically  
run would be to enter the followin a batch file and then setting up a  
shortcut on the desk top for it.

@echo off

net start Apache2
 net stop MySQL
 net stop Apache2

) ELSE (
 net start MySQL

This will toggle apache on and off and make sure mysql is running along with  
it. If Apache2 is running then it will stop it. It will also sync MySQL to  
the state of Apache2.

Just a simple few lines of code that might make it easier than manually  
starting and stoping through admin services.

Site Timeline