Web Design Resources & Tutorials to help you design the best website!
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

3 Responses to Stopping and Starting ColdFusion 8 Services in Windows Via a Batch File
Faisal Abid
July 16th, 2008 at 1:07 pm
vey usefull thanks
eric fickes
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
—
kadazuro
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.