Hey guys 

First I would like to share a little tool I wrote to make life faster for A CF server 
starting and stopping, see the Code snippet below.. 

Secondly I would like to ask anybody if they know how to force the CF MX ODBC Server 
to stop... I'd like to build it in the tool... 

This is a BAT file for CF MX running on 2003 or XP :
*** Code snippet start ***

@ECHO off
cls
:START
cls
ECHO.
ECHO 1. Check ColdFusion MX Application Server
ECHO 2. Check ColdFusion MX ODBC Agent
ECHO 3. Check ColdFusion MX ODBC Server
ECHO.
ECHO 4. Stop ColdFusion MX Application Server
ECHO 5. Stop ColdFusion MX ODBC Agent
ECHO 6. Stop ColdFusion MX ODBC Server
ECHO.
ECHO 7. Start ColdFusion MX Application Server
ECHO 8. Start ColdFusion MX ODBC Agent
ECHO 9. Start ColdFusion MX ODBC Server
ECHO.
ECHO r. Attempt to restart Application server
ECHO x. Exit Application
ECHO.
set choice=
set /p choice=Type the option number.
if not '%choice%'=='' set choice=%choice:~0,1%
if '%choice%'=='1' goto ASCHECK
if '%choice%'=='2' goto OACHECK
if '%choice%'=='3' goto OSCHECK
if '%choice%'=='4' goto ASSTOP
if '%choice%'=='5' goto OASTOP
if '%choice%'=='6' goto OSSTOP
if '%choice%'=='7' goto ASSTART
if '%choice%'=='8' goto OASTART
if '%choice%'=='9' goto OSSTART
if '%choice%'=='r' goto ASRESTART
if '%choice%'=='x' goto END
ECHO "%choice%" is not valid please try again
ECHO.
pause
goto START
REM---------------Application Check------------------
:ASCHECK
cls
sc interrogate "ColdFusion MX Application Server"
pause
goto START
REM---------------ODBC Agent Check-----------------------
:OACHECK
cls
sc interrogate "ColdFusion MX ODBC Agent"
pause
goto START
REM---------------ODBC Server Check-----------------------
:OSCHECK
cls
sc interrogate "ColdFusion MX ODBC Server"
pause
goto START
REM---------------Application Stop------------------
:ASSTOP
cls
sc stop "ColdFusion MX Application Server"
pause
goto ASCHECK
REM---------------ODBC Agent Stop-----------------------
:OASTOP
cls
sc stop "ColdFusion MX ODBC Agent"
pause
goto OACHECK
REM---------------ODBC Server Stop-----------------------
:OSSTOP
cls
sc stop "ColdFusion MX ODBC Server"
pause
goto OSCHECK
REM---------------Application Start-----------------
:ASSTART
cls
sc start "ColdFusion MX Application Server"
pause
goto ASCHECK
REM---------------ODBC Agent Start-----------------------
:OASTART
cls
sc start "ColdFusion MX ODBC Agent"
pause
goto OACHECK
REM---------------ODBC Server Start-----------------------
:OSSTART
cls
sc start "ColdFusion MX ODBC Server"
pause
goto OSCHECK
REM---------------Application server Restart-----------------------
:ASRESTART
cls
sc stop "ColdFusion MX Application Server"
ECHO please wait 30 seconds for the server to exit nicely
pause
cls
sc interrogate "ColdFusion MX Application Server"
ECHO please wait 30 seconds for the server to exit nicely
pause
cls
sc start "ColdFusion MX Application Server"
pause
sc interrogate "ColdFusion MX Application Server"
ECHO please wait 30 seconds for the server to start nicely
pause
goto START
:END
cls
ECHO Thanks for using the fast managment service tool by Adesso �
pause

*** Code snippet end ***

Kind Regards
Adesso

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF 
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=37

Message: http://www.houseoffusion.com/lists.cfm/link=i:10:5036
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/10
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:10
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.10
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to