BetaONE will rise again!

BetaONE will rise again! (http:\\b1.hcanet.com\forum/index.php)
-   Software Support (http:\\b1.hcanet.com\forum/forumdisplay.php?f=45)
-   -   Shortcut To Start /stop A Service In Xp ? (http:\\b1.hcanet.com\forum/showthread.php?t=11355)

Sony 15th Apr 04 05:10 PM

I'm running apache and mysql and php on my workstation but i would like to be able to start and stop myql service manually from my desktop without to having to go in the administrative tool every time.
does anyone know if it's possible to create a shortcut or a vbscript to start and stop a service?

thank you

Sony

SlickVic78 15th Apr 04 06:10 PM

Hey sony,

Do you have an icon (traffic light) in your system tray? If so, right click on that, and there should be an option to shut down the server (MySQL).

[Edit]
I should also add that I am running MySQL on a Windows 9x machine... It may be a totally different set up if you are using an OS based on NT.

Hope this helps,
-SlickVic78

JacKDynne 15th Apr 04 06:13 PM

You can use a batch file most likely ;)

Check here :)
http://www.mysql.de/doc/en/NT_start.html

Hope that helps some :)

/JD

Here is one to use as an example :)

Code:

cd C:\apache
start apache -k start
cd  C:\apache
start apachemonitor.exe
cd  C:\mysql\bin
start mysqld-nt.exe --standalone
start http://localhost/
exit


FOX 15th Apr 04 06:15 PM

You can create two small batch files and put them on your desktop. One to start the service and one to stop it.

MySql_stop.bat:
net stop <service name>

MySql_start.bat:
net start <service name>

Sony 16th Apr 04 12:52 AM

Quote:

Originally posted by SlickVic78@Apr 15 2004, 05:10 PM
Hey sony,

Do you have an icon (traffic light) in your system tray? If so, right click on that, and there should be an option to shut down the server (MySQL).

[Edit]
I should also add that I am running MySQL on a Windows 9x machine... It may be a totally different set up if you are using an OS based on NT.

Hope this helps,
-SlickVic78

I do have that but i hate tools like that sitting in my task bar so I disable it :)

thx anyway

Sony 16th Apr 04 12:53 AM

Quote:

Originally posted by FOX@Apr 15 2004, 05:15 PM
You can create two small batch files and put them on your desktop. One to start the service and one to stop it.

MySql_stop.bat:
net stop <service name>

MySql_start.bat:
net start <service name>

thank you fox that is exactly what i was looking for :)

war59312 16th Apr 04 04:43 AM

Yea just use net start and net stop to start and run services. I use a batch file when I play games on my old computer.

Closes every un-needed service.


All times are GMT +1. The time now is 05:13 AM.

Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.