PDA

View Full Version : Shortcut to turn on/off service (CF server)


croatiankid
04-09-2008, 01:23 PM
I recently installed ColdFusion server, and have seen that while starting up, the computer takes about 10 seconds longer [from the "Welcome" (XP Pro) until I can start working], so I went to Control Panel > Admin tools > Services and set all 4 of the CF services (there are more, but there are 4 that say "ColdFusion 8...") to not start automatically, and disabled them.

For now I'm enabling them when I want to work with CF, and disabling when I finish. Although this isn't complicated, I still have to go through control panel > admin tools > services every time to manage it. Is there a faster way of doing it? Can I make some kind of desktop shortcut (1 for enabling, another for disabling) these 4 services, and how?

It's not that those 10 seconds bug me so much, but I play some high-end games (the computer's from December), and I'm afraid I'll get a performance hit (although I honestly haven't tested or benchmarked in any way).

Aceramic
04-09-2008, 05:10 PM
You could most likely do this with a batch file, but to be honest, I don't know how you would actually accomplish this. :/

croatiankid
04-09-2008, 08:45 PM
Thanks for pointing me in that direction. I'm checking out batch command references, and think I'll be able to come up with something.

croatiankid
04-09-2008, 08:59 PM
I got it.
:: CF.bat

:: Stops ColdFusion
::
@ECHO OFF
NET STOP (or START) "ColdFusion 8 .NET Service (or other service)"
Now all I have to do is double click on a file on my desktop to start or stop the services.

Aceramic
04-10-2008, 07:04 AM
See? I knew there was a way to do it. :)

Poet
04-13-2008, 08:30 AM
This is useful for ANY service you might want to stop or start. Simply replacing the Cold Fusion name with the actual name of the service you want to stop and start. Thanks for bringing that to the forum :)