Posted by Jon Slaughter on 05/03/07 01:18
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
if ERRORLEVEL 1 (
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.
Navigation:
[Reply to this message]
|