Stopping and Starting ColdFusion 8 Services in Windows Via a Batch File

16 Jul
2008
Delicious

For me Jrun takes almost 500K memory when it is fully loaded, which is a waste of memory since I am not always programming ColdFusion so I decided to write 2 Batch Files to Start and Stop all ColdFusion 8 Services. Here is the Code

@echo off
echo Starting ColdFusion 8
echo ======================================================
net start "ColdFusion 8 Application Server"
net start "ColdFusion 8 ODBC Agent"
net start "ColdFusion 8 ODBC Server"
net start "ColdFusion 8 Search Server"
echo ======================================================
echo ColdFusion 8 Started


@echo off
echo Stopping ColdFusion 8
echo ======================================================
net stop "ColdFusion 8 Application Server"
net stop "ColdFusion 8 ODBC Agent"
net stop "ColdFusion 8 ODBC Server"
net stop "ColdFusion 8 Search Server"
echo ======================================================
echo ColdFusion 8 Stopped

The Files If you do not want to create them Click Here

Incoming Search Terms :restart coldfusion 8 , how to restart coldfusion 8 , how to restart coldfusion 8 server , restart coldfusion 8 server , restarting coldfusion 8 , how to start coldfusion 8 , how to start stop coldfusion , how to stop and start coldfusion 8 , net stop coldfusion , restart coldfusion 8 batch file

Share this story with a friend !
Join SherifAbdou's Rss Feed Stumble This Article! Add this to your Delicious Bookmarks! Digg this story ! Add this story to Reddit ! Tweet This Brush


3 Responses to Stopping and Starting ColdFusion 8 Services in Windows Via a Batch File

Avatar

Faisal AbidNo Gravatar

July 16th, 2008 at 1:07 pm

vey usefull thanks

Avatar

eric fickesNo Gravatar

July 16th, 2008 at 2:29 pm

This is a super helpful practice when jumping between projects with different technologies. I like to have a bat for each major piece ( mysql, apache, cf, asp, etc… ), then one master that turns it all on, or turns it all off. This way I can either just run the db, or run it all at once.

your master.bat would then just need to look something like this.

—-
call db.bat

call server.bat

call cf.bat

Avatar

kadazuroNo Gravatar

August 25th, 2008 at 9:00 am

you can also set coldfusion services to start manually instead of the default automatic. (control panel > administrative tools > services, and then look for the coldfusion ones)
then you can put Sherif’s bat files in the windows\sytem32 folder so you can call ‘em directly from the start menu (start>run>CFStart | start>run>CFStart).
thanks for the .bat files.

Comment Form