GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/JimMartinson/_Archive/MMDT1021/dn/ |
Upload File : |
@echo off title Web Services setlocal enableextensions goto:ssBegin :: Detect Apache Version and Status :Adetect set _ApacheName= set _ApacheVersion= :: Test for Apache 1.x. sc query "Apache" |find "FAILED">nul if errorlevel 1 ( set _ApacheName=Apache set _ApacheVersion=1.x ) :: Test for Apache 2. sc query "Apache2" |find "FAILED">nul if errorlevel 1 set _ApacheName=Apache2 if errorlevel 1 ( set _ApacheName=Apache2 set _ApacheVersion=2 ) :: Test for Apache 2.2. sc query "Apache2.2" |find "FAILED">nul if errorlevel 1 set _ApacheName=Apache2.2 if errorlevel 1 ( set _ApacheName=Apache2.2 set _ApacheVersion=2.2 ) set _ApacheStatus=NOT_INSTALLED sc query "%_ApacheName%" |find "STOPPED">nul if not errorlevel 1 set _ApacheStatus=STOPPED sc query "%_ApacheName%"|find "RUNNING">nul if not errorlevel 1 set _ApacheStatus=RUNNING goto:EOF :ApacheAdd if %1.==bin. goto:EOF if %1.==. goto:EOF call:ApacheDirectoryAdd %1 shift goto:ApacheAdd :ApacheDirectoryAdd if NOT %1.==. set _ApacheRoot=%_ApacheRoot%%1\ goto:EOF :_ApachePath for /F "tokens=1-16* delims=\ usebackq" %%A in ('%_ApachePath%') DO call:ApacheAdd %%A %%B %%C %%D %%E %%F %%G %%H %%I %%J %%K %%L %%M %%N %%O %%P goto:EOF :_ApacheRoot for /F "tokens=3*" %%A in ('sc qc apache2 ^| find "BINARY_PATH_NAME"') DO set _ApachePath=%%A set _ApachePath=%_ApachePath:"=% set _ApacheRoot= call:_ApachePath goto:EOF :Astart if %_ApacheStatus%.==STOPPED. echo. if %_ApacheStatus%.==STOPPED. net start %_ApacheName% goto:EOF :: Get Apache start-up method :Astartup set _ApacheStart=NOT_INSTALLED if NOT %_ApacheStatus%.==NOT_INSTALLED. sc qc %_ApacheName%|find "AUTO_START">nul if NOT %_ApacheStatus%.==NOT_INSTALLED. if NOT errorlevel==1 set _ApacheStart=AUTO_START if NOT %_ApacheStatus%.==NOT_INSTALLED. sc qc %_ApacheName%|find "DEMAND_START">nul if NOT %_ApacheStatus%.==NOT_INSTALLED. if NOT errorlevel==1 set _ApacheStart=MANUAL_START goto:EOF :Astop if %_ApacheStatus%.==RUNNING. echo. if %_ApacheStatus%.==RUNNING. net stop %_ApacheName% goto:EOF :: Detect ColdFusion Version and Status :Cdetect set _ColdFusionVersion= :: Test for ColdFusion 5 and earlier. sc query "Cold Fusion Application Server" |find "FAILED">nul if errorlevel 1 ( set _ColdFusionName=Cold Fusion Application Server set _ColdFusionVersion=5 ) :: Test for ColdFusion MX and MX 6.1. sc query "ColdFusion MX Application Server" |find "FAILED">nul if errorlevel 1 ( set _ColdFusionName=ColdFusion MX Application Server set _ColdFusionVersion=MX ) :: Test for ColdFusion MX 7. sc query "ColdFusion MX 7 Application Server" |find "FAILED">nul if errorlevel 1 set _ColdFusionName= if errorlevel 1 ( set _ColdFusionName=ColdFusion MX 7 Application Server set _ColdFusionVersion=MX7 ) :: Test for ColdFusion 8. sc query "ColdFusion 8 Application Server" |find "FAILED">nul if errorlevel 1 ( set _ColdFusionName=ColdFusion 8 Application Server set _ColdFusionVersion=8 ) :: Test for ColdFusion 9. sc query "ColdFusion 9 Application Server" |find "FAILED">nul if errorlevel 1 ( set _ColdFusionName=ColdFusion 9 Application Server set _ColdFusionVersion=9 ) set _ColdFusion_Status=NOT_INSTALLED sc query "%_ColdFusionName%" |find "STOPPED">nul if not errorlevel 1 set _ColdFusion_Status=STOPPED sc query "%_ColdFusionName%"|find "RUNNING">nul if not errorlevel 1 set _ColdFusion_Status=RUNNING goto:EOF :: Start ColdFusion services. :Cstart if %_ColdFusion_Status%.==STOPPED. echo. if %_ColdFusion_Status%.==STOPPED. net start "%_ColdFusionName%" call:Cstart%_ColdFusionVersion% goto:EOF :Cstart5 if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion Executive" if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion RDS" if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion Management Service" if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion Monitoring Service" if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion Graphing Server" if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion Management Repository Server" if %_ColdFusion_Status%.==STOPPED. net start "SiteMinder Authentication Service" if %_ColdFusion_Status%.==STOPPED. net start "SiteMinder Authorization Service" goto:EOF :CstartMX if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion MX ODBC Agent" if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion MX ODBC Server" goto:EOF :CstartMX7 if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion MX 7 Search Server" goto:EOF :Cstart8 if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion 8 .NET Service" if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion 8 ODBC Agent" if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion 8 ODBC Server" if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion 8 Search Server" goto:EOF :Cstart9 if %_ColdFusion_Status%.==STOPPED. net start "Macromedia JRun Admin Server" if %_ColdFusion_Status%.==STOPPED. net start "Macromedia JRun CFusion Server" if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion 9 ODBC Agent" if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion 9 ODBC Server" if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion 9 Search Service" if %_ColdFusion_Status%.==STOPPED. net start "ColdFusion 9 .NET Service" goto:EOF :: Get ColdFusion start-up method :Cstartup set _ColdFusionStart=NOT_INSTALLED if "%_ColdFusion_Status%"=="NOT_INSTALLED" goto:EOF sc qc "%_ColdFusionName%"|find "AUTO_START">nul if NOT errorlevel==1 set _ColdFusionStart=AUTO_START sc qc "%_ColdFusionName%"|find "DEMAND_START">nul if NOT errorlevel==1 set _ColdFusionStart=MANUAL_START goto:EOF :: Stop ColdFusion services. :Cstop if %_ColdFusion_Status%.==RUNNING. echo. if %_ColdFusion_Status%.==RUNNING. net stop "%_ColdFusionName%" call:Cstop%_ColdFusionVersion% goto:EOF :Cstop5 if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion Executive" if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion RDS" if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion Management Service" if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion Monitoring Service" if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion Graphing Server" if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion Management Repository Server" if %_ColdFusion_Status%.==RUNNING. net stop "SiteMinder Authentication Service" if %_ColdFusion_Status%.==RUNNING. net stop "SiteMinder Authorization Service" goto:EOF :CstopMX if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion MX ODBC Agent" if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion MX ODBC Server" goto:EOF :CstopMX7 if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion MX 7 Search Server" goto:EOF :Cstop8 if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion 8 .NET Service" if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion 8 ODBC Agent" if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion 8 ODBC Server" if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion 8 Search Server" if %_ColdFusion_Status%.==RUNNING. net stop goto:EOF :Cstop9 if %_ColdFusion_Status%.==RUNNING. net stop "Macromedia JRun Admin Server" if %_ColdFusion_Status%.==RUNNING. net stop "Macromedia JRun CFusion Server" if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion 9 ODBC Agent" if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion 9 ODBC Server" if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion 9 Search Service" if %_ColdFusion_Status%.==RUNNING. net stop "ColdFusion 9 .NET Service" goto:EOF :: Detect IIS Status :Idetect set _IISStatus=NOT_INSTALLED sc query "w3svc" |find "STOPPED">nul if not errorlevel 1 set _IISStatus=STOPPED sc query "w3svc"|find "RUNNING">nul if not errorlevel 1 set _IISStatus=RUNNING goto:EOF :: Start IIS :Istart if %_IISStatus%.==STOPPED. iisreset /start if %_IISStatus%.==STOPPED. if not errorlevel 1 net start w3svc goto:EOF :: Get IIS start-up method :Istartup set _IISStart=NOT_INSTALLED if NOT %_IISStatus%.==NOT_INSTALLED. sc qc w3svc|find "AUTO_START">nul if NOT %_IISStatus%.==NOT_INSTALLED. if NOT errorlevel==1 set _IISStart=AUTO_START if NOT %_IISStatus%.==NOT_INSTALLED. sc qc w3svc|find "DEMAND_START">nul if NOT %_IISStatus%.==NOT_INSTALLED. if NOT errorlevel==1 set _IISStart=MANUAL_START goto:EOF :: Stop IIS :Istop if %_IISStatus%.==RUNNING. iisreset /stop if %_IISStatus%.==RUNNING. echo The Web service was STOPPED successfully. goto:EOF :: Detect MySQL Status :Mdetect set _MySQLStatus=NOT_INSTALLED sc query "MySQL" |find "STOPPED">nul if not errorlevel 1 set _MySQLStatus=STOPPED sc query "MySQL"|find "RUNNING">nul if not errorlevel 1 set _MySQLStatus=RUNNING goto:EOF :: Start MySQL :Mstart if %_MySQLStatus%.==STOPPED. net start MySQL goto:EOF :: Get MySQL start-up method :Mstartup set _MySQLStart=NOT_INSTALLED if NOT %_MySQLStatus%.==NOT_INSTALLED. sc qc MySQL|find "AUTO_START">nul if NOT %_MySQLStatus%.==NOT_INSTALLED. if NOT errorlevel==1 set _MySQLStart=AUTO_START if NOT %_MySQLStatus%.==NOT_INSTALLED. sc qc MySQL|find "DEMAND_START">nul if NOT %_MySQLStatus%.==NOT_INSTALLED. if NOT errorlevel==1 set _MySQLStart=MANUAL_START goto:EOF :: Stop MySQL :Mstop if %_MySQLStatus%.==RUNNING. echo. if %_MySQLStatus%.==RUNNING. net stop MySQL goto:EOF :: Configure Apache for PHP. :PaddConfig if "%PHPRC%"=="" ( echo The environmental variable PHPRC is not set. echo PHP does not seem to be installed. echo Apache configuration Aborted. goto:EOF ) if "%_ApacheVersion%"=="" ( echo Apache does not seem to be installed. echo Apache configuration Aborted. goto:EOF ) set PHPRCq=%PHPRC:\=/% echo.>>"%_ApacheRoot%conf\httpd.conf" echo #BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL>>"%_ApacheRoot%conf\httpd.conf" echo PHPIniDir "%PHPRCq%">>"%_ApacheRoot%conf\httpd.conf" if "%_ApacheVersion%"=="1.x" echo LoadModule php5_module "%PHPRCq%php5apache.dll">>"%_ApacheRoot%conf\httpd.conf" if "%_ApacheVersion%"=="2" echo LoadModule php5_module "%PHPRCq%php5apache2.dll">>"%_ApacheRoot%conf\httpd.conf" if "%_ApacheVersion%"=="2.2" echo LoadModule php5_module "%PHPRCq%php5apache2_2.dll">>"%_ApacheRoot%conf\httpd.conf" echo AddType application/x-httpd-php .php>>"%_ApacheRoot%conf\httpd.conf" echo #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL>>"%_ApacheRoot%conf\httpd.conf" goto:EOF :: Detect if PHP is installed :Pdetect set _PHPStatus=NOT_INSTALLED Set _PHPdir=%PHPRC% if %_PHPdir%.==. call:PdirGet if NOT %_PHPdir%.==. set _PHPStatus=INSTALLED goto:EOF :PdirGet echo The environmental variable PHPRC is not set. set _PHPdir= for %%d in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do call:PdirFind %%d goto:EOF :PdirFind if %_PHPdir%.==. if exist %1:\ goto:PdriveExists goto:EOF :PdriveExists echo Searching the %1: drive for PHP. if exist %1:\PHP\php.exe set _PHPdir=%1:\PHP\ goto:EOF :PromptChoiceTest :: Check for the choice command, choice version, or set /p. :: _use is NOT defined if the choice or set /p commands are not available. :: _use = DOS if the DOS version of choice is available. :: _use = Win if the Windows version of choice is available. :: _use = Set if the set /p command must be used. set _use=Set choice /? >nul 2>nul :: The Windows version sets the errorlevel to 0. if "%errorlevel%"=="0" set _use=Win :: The DOS version sets the errorlevel to 255. if "%errorlevel%"=="255" set _use=DOS if NOT %_use%==set goto:EOF :: Check for set /P. set /?|find "SET /P variable=[promptString]">nul if not "%errorlevel%"=="0" set _use= goto:EOF :detect_RunAsAdministrator set RunAsAdministrator= ::Sets errorlevel 0 if running as administrator whoami /priv|find "SeImpersonatePrivilege">nul 2>nul if %ERRORLEVEL% EQU 0 set RunAsAdministrator=1 if NOT "%~1" EQU "/q" ( if NOT "%~1" EQU "/Q" ( if NOT defined RunAsAdministrator ( echo %username% is not Administrator. echo Please run %~n0 using an Administrator account. goto:EOF ) ) ) goto:EOF :: Detect Microsoft SQL Server Status :Sdetect set _SQLmsStatus=NOT_INSTALLED sc query "MSSQLSERVER" |find "STOPPED">nul if not errorlevel 1 set _SQLmsStatus=STOPPED sc query "MSSQLSERVER"|find "RUNNING">nul if not errorlevel 1 set _SQLmsStatus=RUNNING goto:EOF :: Start Microsoft SQL Server :Sstart :: MSSQLSERVER SQL Server (MSSQLSERVER) :: MsDtsServer SQL Server Integration Services :: SQLBrowser SQL Server Browser :: SQLSERVERAGENT SQL Server Agent (MSSQLSERVER) :: msftesql SQL Server FullText Search (MSSQLSERVER) :: MSSQLServerOLAPService SQL Server Analysis Services (MSSQLSERVER) :: ReportServer SQL Server Reporting Services (MSSQLSERVER) :: SQL Server Active Directory Helper - Starts as needed. :: SQLWriter SQL Server VSS Writer net start "SQL Server (MSSQLSERVER)" net start "SQL Server Integration Services" net start "SQL Server Browser" net start "SQL Server Agent (MSSQLSERVER)" net start "SQL Server FullText Search (MSSQLSERVER)" net start "SQL Server Analysis Services (MSSQLSERVER)" net start "SQL Server Reporting Services (MSSQLSERVER)" ::net start "SQL Server Active Directory Helper" net start "SQL Server VSS Writer" goto:EOF :: Get Microsoft SQL Server start-up method :Sstartup set _SQLmsStart=NOT_INSTALLED if %_SQLmsStatus%.==NOT_INSTALLED. goto:EOF sc qc MSSQLSERVER|find "AUTO_START">nul if NOT errorlevel==1 set _SQLmsStart=AUTO_START sc qc MSSQLSERVER|find "DEMAND_START">nul if NOT errorlevel==1 set _SQLmsStart=MANUAL_START goto:EOF :: Stop Microsoft SQL Server :Sstop if %_SQLmsStatus%.==RUNNING. echo. net stop "SQL Server Agent (MSSQLSERVER)" net stop "SQL Server (MSSQLSERVER)" net stop "SQL Server Integration Services" net stop "SQL Server Browser" net stop "SQL Server FullText Search (MSSQLSERVER)" net stop "SQL Server Analysis Services (MSSQLSERVER)" net stop "SQL Server Reporting Services (MSSQLSERVER)" ::net stop "SQL Server Active Directory Helper" net stop "SQL Server VSS Writer" goto:EOF :ssBegin echo. setlocal enableextensions :: Test for OS version set _ver= for /f "tokens=3" %%v in ('ver') do if "%%v"=="XP" set _ver=WinXP for /f "tokens=4 delims=[. " %%v in ('ver') do if "%%v"=="6" set _ver=Win7 goto ssDetect%_ver% :ssDetect ver echo This version of windows is not supported by %~n0. goto:EOF :ssDetectWin7 call:detect_RunAsAdministrator if NOT defined RunAsAdministrator goto:EOF :ssDetectWinXP call:PromptChoiceTest if NOT defined _use ( echo Neither the choice or set /p commands are available. goto:EOF ) call:Adetect call:Cdetect call:Idetect call:Mdetect call:Pdetect call:Sdetect :ssMenu echo Service Run Status echo ---------- ------------- echo Apache %_ApacheStatus% echo ColdFusion %_ColdFusion_Status% echo IIS Web %_IISStatus% echo MySQL %_MySQLStatus% echo SQL Server %_SQLmsStatus% echo PHP %_PHPStatus% echo. set MSchoice= :: 1) Start Apache and ColdFusion (+Exit) :: 2) Start Apache and MySQL (+Exit) :: 3) Start Apache and Microsoft SQL Server (+Exit) :: 4) Start Apache, ColdFusion, and MySQL (+Exit) :: 5) Start Apache, ColdFusion, and MySQL, and Microsoft SQL Server (+Exit) :: 6) Start IIS and ColdFusion (+Exit) :: 7) Start IIS and MySQL (+Exit) :: 8) Start IIS and Microsoft SQL Server (+Exit) :: 9) Start IIS, ColdFusion, and Microsoft SQL Server (+Exit) :: 0) Start IIS, ColdFusion, MySQL, and Microsoft SQL Server (+Exit) if NOT %_ApacheStatus%.==NOT_INSTALLED. if NOT %_ColdFusion_Status%.==NOT_INSTALLED. echo 1) Start Apache and ColdFusion (+Exit) if NOT %_ApacheStatus%.==NOT_INSTALLED. if NOT %_MySQLStatus%.==NOT_INSTALLED. echo 2) Start Apache and MySQL (+Exit) if NOT %_ApacheStatus%.==NOT_INSTALLED. if NOT %_SQLmsStatus%.==NOT_INSTALLED. echo 3) Start Apache and Microsoft SQL Server (+Exit) if NOT %_ApacheStatus%.==NOT_INSTALLED. if NOT %_MySQLStatus%.==NOT_INSTALLED. if NOT %_MySQLStatus%.==NOT_INSTALLED. echo 4) Start Apache, ColdFusion, and MySQL (+Exit) if NOT %_ApacheStatus%.==NOT_INSTALLED. if NOT %_ColdFusion_Status%.==NOT_INSTALLED. if NOT %_MySQLStatus%.==NOT_INSTALLED. if NOT %_SQLmsStatus%.==NOT_INSTALLED. echo 5) Start Apache, ColdFusion, and MySQL, and Microsoft SQL Server (+Exit) if NOT %_IISStatus%.==NOT_INSTALLED. if NOT %_ColdFusion_Status%.==NOT_INSTALLED. echo 6) Start IIS and ColdFusion (+Exit) if NOT %_IISStatus%.==NOT_INSTALLED. if NOT %_MySQLStatus%.==NOT_INSTALLED. echo 7) Start IIS and MySQL (+Exit) if NOT %_IISStatus%.==NOT_INSTALLED. if NOT %_SQLmsStatus%.==NOT_INSTALLED. echo 8) Start IIS and Microsoft SQL Server (+Exit) if NOT %_IISStatus%.==NOT_INSTALLED. if NOT %_ColdFusion_Status%.==NOT_INSTALLED. if NOT %_SQLmsStatus%.==NOT_INSTALLED. echo 9) Start IIS, ColdFusion, and Microsoft SQL Server (+Exit) if NOT %_IISStatus%.==NOT_INSTALLED. if NOT %_ColdFusion_Status%.==NOT_INSTALLED. if NOT %_MySQLStatus%.==NOT_INSTALLED. if NOT %_SQLmsStatus%.==NOT_INSTALLED. echo 0) Start IIS, ColdFusion, MySQL, and Microsoft SQL Server (+Exit) if %_ApacheStatus%.==STOPPED. if %_IISStatus%.==NOT_INSTALLED. echo A) Apache start if %_ApacheStatus%.==STOPPED. if %_IISStatus%.==STOPPED. echo A) Apache start if %_ApacheStatus%.==STOPPED. if %_IISStatus%.==RUNNING. echo A) Apache start (+IIS stop) if %_ApacheStatus%.==RUNNING. echo A) Apache stop if %_ColdFusion_Status%.==STOPPED. echo C) ColdFusion start if %_ColdFusion_Status%.==RUNNING. echo C) ColdFusion stop if %_IISStatus%.==STOPPED. if %_ApacheStatus%.==NOT_INSTALLED. echo I) IIS Web start if %_IISStatus%.==STOPPED. if %_ApacheStatus%.==STOPPED. echo I) IIS Web start if %_IISStatus%.==STOPPED. if %_ApacheStatus%.==RUNNING. echo I) IIS Web start (+Apache stop) if %_IISStatus%.==RUNNING. echo I) IIS Web stop if %_MySQLStatus%.==STOPPED. echo M) MySQL start if %_MySQLStatus%.==RUNNING. echo M) MySQL stop if %_SQLmsStatus%.==STOPPED. echo S) Microsoft SQL Server start if %_SQLmsStatus%.==RUNNING. echo S) Microsoft SQL Server stop echo. echo R) Refresh echo K) Kill all (+Exit) echo V) Display variables. echo W) Web services configuration menu echo X) Exit echo. set _ssSelection= call:ssMenu%_use% if NOT defined _ssSelection ( echo Bad selection. goto:ssMenu ) ::echo _ssSelection=%_ssSelection% ::pause goto:%_ssSelection% :ssMenuDOS choice /c:1234567890acikmrswxv /n Enter selection: goto ssMenuChoice :ssMenuSet set _answer= set /p _answer=Enter a selection from above and hit enter: if "%_answer%"=="V" set _ssSelection=ssMenuVariables if "%_answer%"=="v" set _ssSelection=ssMenuVariables if "%_answer%"=="X" set _ssSelection=ssMenuX if "%_answer%"=="x" set _ssSelection=ssMenuX if "%_answer%"=="W" set _ssSelection=ssMenuW if "%_answer%"=="w" set _ssSelection=ssMenuW if "%_answer%"=="S" set _ssSelection=ssMenuS if "%_answer%"=="s" set _ssSelection=ssMenuS if "%_answer%"=="R" set _ssSelection=ssMenuR if "%_answer%"=="r" set _ssSelection=ssMenuR if "%_answer%"=="M" set _ssSelection=ssMenuM if "%_answer%"=="m" set _ssSelection=ssMenuM if "%_answer%"=="K" set _ssSelection=ssMenuK if "%_answer%"=="k" set _ssSelection=ssMenuK if "%_answer%"=="I" set _ssSelection=ssMenuI if "%_answer%"=="i" set _ssSelection=ssMenuI if "%_answer%"=="C" set _ssSelection=ssMenuC if "%_answer%"=="c" set _ssSelection=ssMenuC if "%_answer%"=="A" set _ssSelection=ssMenuA if "%_answer%"=="a" set _ssSelection=ssMenuA if "%_answer%"=="0" set _ssSelection=ssMenu0 if "%_answer%"=="9" set _ssSelection=ssMenu9 if "%_answer%"=="8" set _ssSelection=ssMenu8 if "%_answer%"=="7" set _ssSelection=ssMenu7 if "%_answer%"=="6" set _ssSelection=ssMenu6 if "%_answer%"=="5" set _ssSelection=ssMenu5 if "%_answer%"=="4" set _ssSelection=ssMenu4 if "%_answer%"=="3" set _ssSelection=ssMenu3 if "%_answer%"=="2" set _ssSelection=ssMenu2 if "%_answer%"=="1" set _ssSelection=ssMenu1 goto:EOF :ssMenuWin choice /c:1234567890acikmrswxv /n /m "Enter selection: " :ssMenuChoice if %errorlevel%==20 set _ssSelection=ssMenuVariables if %errorlevel%==19 set _ssSelection=ssMenuX if %errorlevel%==18 set _ssSelection=ssMenuW if %errorlevel%==17 set _ssSelection=ssMenuS if %errorlevel%==16 set _ssSelection=ssMenuR if %errorlevel%==15 set _ssSelection=ssMenuM if %errorlevel%==14 set _ssSelection=ssMenuK if %errorlevel%==13 set _ssSelection=ssMenuI if %errorlevel%==12 set _ssSelection=ssMenuC if %errorlevel%==11 set _ssSelection=ssMenuA if %errorlevel%==10 set _ssSelection=ssMenu0 if %errorlevel%==9 set _ssSelection=ssMenu9 if %errorlevel%==8 set _ssSelection=ssMenu8 if %errorlevel%==7 set _ssSelection=ssMenu7 if %errorlevel%==6 set _ssSelection=ssMenu6 if %errorlevel%==5 set _ssSelection=ssMenu5 if %errorlevel%==4 set _ssSelection=ssMenu4 if %errorlevel%==3 set _ssSelection=ssMenu3 if %errorlevel%==2 set _ssSelection=ssMenu2 if %errorlevel%==1 set _ssSelection=ssMenu1 goto:EOF :ssMenuError echo Menu error. goto:EOF :: 1) Start Apache and ColdFusion (+Exit) :ssMenu1 echo. echo Start Apache and ColdFusion (+Exit) if %_IISStatus%.==RUNNING. call:Istop if %_MySQLStatus%.==RUNNING. call:Mstop if %_SQLmsStatus%.==RUNNING. call:Sstop if %_ColdFusion_Status%.==STOPPED. call:Cstart if %_ApacheStatus%.==STOPPED. call:Astart goto:EOF :: 2) Start Apache and MySQL (+Exit) :ssMenu2 echo. echo Start Apache and MySQL (+Exit) if %_IISStatus%.==RUNNING. call:Istop if %_ColdFusion_Status%.==RUNNING. call:Cstop if %_SQLmsStatus%.==RUNNING. call:Sstop if %_MySQLStatus%.==STOPPED. call:Mstart if %_ApacheStatus%.==STOPPED. call:Astart goto:EOF :: 3) Start Apache and Microsoft SQL Server (+Exit) :ssMenu3 echo. echo Start Apache and MySQL (+Exit) if %_IISStatus%.==RUNNING. call:Istop if %_ColdFusion_Status%.==RUNNING. call:Cstop if %_MySQLStatus%.==RUNNING. call:Mstop if %_SQLmsStatus%.==STOPPED. call:Sstart if %_ApacheStatus%.==STOPPED. call:Astart goto:EOF :: 4) Start Apache, ColdFusion, and MySQL (+Exit) :ssMenu4 echo. echo Start Apache, ColdFusion, and MySQL (+Exit) if %_IISStatus%.==RUNNING. call:Istop if %_SQLmsStatus%.==RUNNING. call:Sstop if %_ColdFusion_Status%.==STOPPED. call:Cstart if %_MySQLStatus%.==STOPPED. call:Mstart if %_ApacheStatus%.==STOPPED. call:Astart goto:EOF :: 5) Start Apache, ColdFusion, and MySQL, and Microsoft SQL Server (+Exit) :ssMenu5 echo. echo Start Apache, ColdFusion, and MySQL (+Exit) if %_IISStatus%.==RUNNING. call:Istop if %_ColdFusion_Status%.==STOPPED. call:Cstart if %_MySQLStatus%.==STOPPED. call:Mstart if %_SQLmsStatus%.==STOPPED. call:Sstart if %_ApacheStatus%.==STOPPED. call:Astart goto:EOF :: 6) Start IIS and ColdFusion (+Exit) :ssMenu6 echo. echo Start IIS and ColdFusion (+Exit) if %_ApacheStatus%.==RUNNING. call:Astop if %_MySQLStatus%.==RUNNING. call:Mstop if %_SQLmsStatus%.==RUNNING. call:Sstop if %_ColdFusion_Status%.==STOPPED. call:Cstart if %_IISStatus%.==STOPPED. call:Istart goto:EOF :: 7) Start IIS and MySQL (+Exit) :ssMenu7 echo. echo Start IIS and MySQL (+Exit) if %_ApacheStatus%.==RUNNING. call:Astop if %_ColdFusion_Status%.==RUNNING. call:Cstop if %_SQLmsStatus%.==RUNNING. call:Sstop if %_MySQLStatus%.==STOPPED. call:Mstart if %_IISStatus%.==STOPPED. call:Istart goto:EOF :: 8) Start IIS and Microsoft SQL Server (+Exit) :ssMenu8 echo. echo Start IIS and MySQL (+Exit) if %_ApacheStatus%.==RUNNING. call:Astop if %_ColdFusion_Status%.==RUNNING. call:Cstop if %_MySQLStatus%.==RUNNING. call:Mstop if %_SQLmsStatus%.==STOPPED. call:Sstart if %_IISStatus%.==STOPPED. call:Istart goto:EOF :: 9) Start IIS, ColdFusion, and Microsoft SQL Server (+Exit) :ssMenu9 echo. echo Start IIS, and MS_SQL (+Exit) if %_ApacheStatus%.==RUNNING. call:Astop if %_MySQLStatus%.==RUNNING. call:Mstop if %_ColdFusion_Status%.==STOPPED. call:Cstart if %_SQLmsStatus%.==STOPPED. call:Sstart if %_IISStatus%.==STOPPED. call:Istart goto:EOF :: 0) Start IIS, ColdFusion, MySQL, and Microsoft SQL Server (+Exit) :ssMenu0 echo. echo Start IIS, and MS_SQL (+Exit) if %_ApacheStatus%.==RUNNING. call:Astop if %_ColdFusion_Status%.==STOPPED. call:Cstart if %_MySQLStatus%.==STOPPED. call:Mstart if %_SQLmsStatus%.==STOPPED. call:Sstart if %_IISStatus%.==STOPPED. call:Istart goto:EOF :ssMenuA if %_ApacheStatus%.==STOPPED. if %_IISStatus%.==RUNNING. call:Istop if %_ApacheStatus%.==STOPPED. if %_IISStatus%.==RUNNING. echo. if %_ApacheStatus%.==STOPPED. call:Astart if %_ApacheStatus%.==RUNNING. call:Astop goto:ssBegin :ssMenuC if %_ColdFusion_Status%.==STOPPED. call:Cstart if %_ColdFusion_Status%.==RUNNING. call:Cstop goto:ssBegin :ssMenuI if %_IISStatus%.==STOPPED. if %_ApacheStatus%.==RUNNING. call:Astop if %_IISStatus%.==STOPPED. call:Istart if %_IISStatus%.==RUNNING. call:Istop goto:ssBegin :ssMenuK if %_ApacheStatus%.==RUNNING. call:Astop if %_ColdFusion_Status%.==RUNNING. call:Cstop if %_IISStatus%.==RUNNING. call:Istop if %_MySQLStatus%.==RUNNING. call:Mstop if %_SQLmsStatus%.==RUNNING. call:Sstop goto:EOF :ssMenuM if %_MySQLStatus%.==STOPPED. call:Mstart if %_MySQLStatus%.==RUNNING. call:Mstop goto:ssBegin :ssMenuR cls goto:ssBegin :ssMenuS if %_SQLmsStatus%.==STOPPED. call:Sstart if %_SQLmsStatus%.==RUNNING. call:Sstop goto:ssBegin :ssMenuW cls goto:suMenu :ssMenuVariables set _ pause goto:ssMenu :ssMenuX goto:EOF :suMenu call:Astartup call:Cstartup call:Istartup call:Mstartup call:Sstartup echo. echo Service Start-up type echo ---------- ------------- echo Apache %_ApacheStart% echo ColdFusion %_ColdFusionStart% echo IIS Web %_IISStart% echo MySQL %_MySQLStart% echo SQL Server %_SQLmsStart% echo. if %_ApacheStart%.==AUTO_START. echo A) Apache start-up type set to MANUAL_START if %_ApacheStart%.==MANUAL_START. echo A) Apache start-up type set to AUTO_START if %_ColdFusionStart%.==AUTO_START. echo C) ColdFusion start-up type set to MANUAL_START if %_ColdFusionStart%.==MANUAL_START. echo C) ColdFusion start-up type set to AUTO_START if %_IISStart%.==AUTO_START. echo I) IIS Web start-up type set to MANUAL_START if %_IISStart%.==MANUAL_START. echo I) IIS Web start-up type set to AUTO_START if %_MySQLStart%.==AUTO_START. echo M) MySQL start-up type set to MANUAL_START if %_MySQLStart%.==MANUAL_START. echo M) MySQL start-up type set to AUTO_START if %_SQLmsStart%.==AUTO_START. echo S) Microsoft SQL Server start-up type set to MANUAL_START if %_SQLmsStart%.==MANUAL_START. echo S) Microsoft SQL Server start-up type set to AUTO_START if NOT "%_PHPStatus%"=="INSTALLED" echo P) Configure Apache for PHP. echo Q) Quit and return to the Start Stop menu echo X) Exit echo. call:suMenu%_use% if NOT defined _suSelection ( echo Bad selection. goto:suMenu ) ::echo _suSelection=%_suSelection% ::pause goto:%_suSelection% :suMenuDOS choice /c:acimpqsx /n Enter selection: goto:suMenuChoice :suMenuSet set /p _answer=Enter a selection from above and hit enter: set _suSelection= if "%_answer%"=="X" set _suSelection=ssMenuX if "%_answer%"=="x" set _suSelection=ssMenuX if "%_answer%"=="S" set _suSelection=suMenuS if "%_answer%"=="Q" set _suSelection=ssMenu if "%_answer%"=="q" set _suSelection=ssMenu if "%_answer%"=="P" set _suSelection=ssMenuP if "%_answer%"=="p" set _suSelection=ssMenuP if "%_answer%"=="s" set _suSelection=suMenuS if "%_answer%"=="M" set _suSelection=suMenuM if "%_answer%"=="m" set _suSelection=suMenuM if "%_answer%"=="I" set _suSelection=suMenuI if "%_answer%"=="i" set _suSelection=suMenuI if "%_answer%"=="C" set _suSelection=suMenuC if "%_answer%"=="c" set _suSelection=suMenuC if "%_answer%"=="A" set _suSelection=suMenuA if "%_answer%"=="a" set _suSelection=suMenuA goto:EOF :suMenuWin choice /c:acimpqsx /n /m "Enter selection: " :suMenuChoice if %errorlevel%==8 set _suSelection=ssMenuX if %errorlevel%==7 set _suSelection=suMenuS if %errorlevel%==6 set _suSelection=ssMenu if %errorlevel%==5 set _suSelection=suMenuP if %errorlevel%==4 set _suSelection=suMenuM if %errorlevel%==3 set _suSelection=suMenuI if %errorlevel%==2 set _suSelection=suMenuC if %errorlevel%==1 set _suSelection=suMenuA goto:EOF :suMenuA echo. if %_ApacheStart%.==AUTO_START. echo Setting start-up type for Apache to MANUAL START if %_ApacheStart%.==MANUAL_START. echo Setting start-up type for Apache to AUTO START if %_ApacheStart%.==AUTO_START. sc config %_ApacheName% start= demand if %_ApacheStart%.==MANUAL_START. sc config %_ApacheName% start= auto goto:suMenu :suMenuC echo. if %_ColdFusionStart%.==AUTO_START. echo Setting start-up type for ColdFusion to MANUAL START if %_ColdFusionStart%.==MANUAL_START. echo Setting start-up type for ColdFusion to AUTO START if %_ColdFusionStart%.==AUTO_START. sc config "%_ColdFusionName%" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "%_ColdFusionName%" start= auto call:suMenuC%_ColdFusionVersion% goto:suMenu :suMenuC5 if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion Executive" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion Executive" start= auto if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion RDS" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion RDS" start= auto if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion Management Service" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion Management Service" start= auto if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion Monitoring Service" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion Monitoring Service" start= auto if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion Graphing Server" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion Graphing Server" start= auto if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion Management Repository Server" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion Management Repository Server" start= auto if %_ColdFusionStart%.==AUTO_START. sc config "SiteMinder Authentication Service" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "SiteMinder Authentication Service" start= auto if %_ColdFusionStart%.==AUTO_START. sc config "SiteMinder Authorization Service" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "SiteMinder Authorization Service" start= auto goto:EOF :suMenuCMX if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion MX ODBC Agent" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion MX ODBC Agent" start= auto if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion MX ODBC Server" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion MX ODBC Server" start= auto goto:EOF :suMenuCMX7 if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion MX 7 Search Server" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion MX 7 Search Server" start= auto if %_ColdFusion_Status%.==STOPPED. net start "" goto:EOF :suMenuC8 if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion 8 .NET Service" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion 8 .NET Service" start= auto if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion 8 ODBC Agent" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion 8 ODBC Agent" start= auto if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion 8 ODBC Server" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion 8 ODBC Server" start= auto if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion 8 Search Server" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion 8 Search Server" start= auto goto:EOF :suMenuC9 if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion 9 ODBC Agent" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion 9 ODBC Agent" start= auto if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion 9 ODBC Server" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion 9 ODBC Server" start= auto if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion 9 Search Service" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion 9 Search Service" start= auto if %_ColdFusionStart%.==AUTO_START. sc config "ColdFusion 9 .NET Service" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "ColdFusion 9 .NET Service" start= auto if %_ColdFusionStart%.==AUTO_START. sc config "Macromedia JRun Admin Server" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "Macromedia JRun Admin Server" start= auto if %_ColdFusionStart%.==AUTO_START. sc config "Macromedia JRun CFusion Server" start= demand if %_ColdFusionStart%.==MANUAL_START. sc config "Macromedia JRun CFusion Server" start= auto goto:EOF :suMenuI echo. if %_IISStart%.==AUTO_START. echo Setting start-up type for IIS Web to MANUAL START if %_IISStart%.==MANUAL_START. echo Setting start-up type for IIS Web to AUTO START if %_IISStart%.==AUTO_START. sc config w3svc start= demand if %_IISStart%.==MANUAL_START. sc config w3svc start= auto goto:suMenu :suMenuM echo. if %_MySQLStart%.==AUTO_START. echo Setting start-up type for MySQL to MANUAL START if %_MySQLStart%.==MANUAL_START. echo Setting start-up type for MySQL to AUTO START if %_MySQLStart%.==AUTO_START. sc config MySQL start= demand if %_MySQLStart%.==MANUAL_START. sc config MySQL start= auto goto:suMenu :ssMenuP call:PaddConfig goto:suMenu :suMenuS echo. if %_SQLmsStart%.==AUTO_START. echo Setting start-up type for MySQL to MANUAL START if %_SQLmsStart%.==MANUAL_START. echo Setting start-up type for MySQL to AUTO START if %_SQLmsStart%.==AUTO_START. sc config "MSSQLSERVER" start= demand if %_SQLmsStart%.==MANUAL_START. sc config "MSSQLSERVER" start= auto if %_SQLmsStart%.==AUTO_START. sc config "MsDtsServer" start= demand if %_SQLmsStart%.==MANUAL_START. sc config "MsDtsServer" start= auto if %_SQLmsStart%.==AUTO_START. sc config "SQLBrowser" start= demand if %_SQLmsStart%.==MANUAL_START. sc config "SQLBrowser" start= auto if %_SQLmsStart%.==AUTO_START. sc config "SQLSERVERAGENT" start= demand if %_SQLmsStart%.==MANUAL_START. sc config "SQLSERVERAGENT" start= auto if %_SQLmsStart%.==AUTO_START. sc config "msftesql" start= demand if %_SQLmsStart%.==MANUAL_START. sc config "msftesql" start= auto if %_SQLmsStart%.==AUTO_START. sc config "MSSQLServerOLAPService" start= demand if %_SQLmsStart%.==MANUAL_START. sc config "MSSQLServerOLAPService" start= auto if %_SQLmsStart%.==AUTO_START. sc config "ReportServer" start= demand if %_SQLmsStart%.==MANUAL_START. sc config "ReportServer" start= auto ::if %_SQLmsStart%.==AUTO_START. sc config "SQL Server Active Directory Helper" start= demand ::if %_SQLmsStart%.==MANUAL_START. sc config "SQL Server Active Directory Helper" start= auto if %_SQLmsStart%.==AUTO_START. sc config "SQLWriter" start= demand if %_SQLmsStart%.==MANUAL_START. sc config "SQLWriter" start= auto goto:suMenu