following are the scripts to start the services..
A.bat
sc stop Apache2
sc stop MySQL
pause
sc start wampapache
sc start wampmysqld
B.bat
sc stop wampapache
sc stop wampmysqld
pause
sc start Apache2
sc start MySQL
I first started using actually executables from bin directories from respective apps. but It was not working for stopping the service.
I used pause because didnt find sleep command on windows. these scripts I wrote using whatever help I got from windows help service. as I was working from home without internet.
if sc start/stop says service is not installed then you can install the service.
sc install servicename.
you have any better ways of doing this things let me know.
No comments:
Post a Comment