Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) E:\nuevo\ dr-xr-xr-x |
Viewing file: Select action/file-type: @echo off rem Licensed to the Apache Software Foundation (ASF) under one or more rem contributor license agreements. See the NOTICE file distributed with rem this work for additional information regarding copyright ownership. rem The ASF licenses this file to You under the Apache License, Version 2.0 rem (the "License"); you may not use this file except in compliance with rem the License. You may obtain a copy of the License at rem rem http://www.apache.org/licenses/LICENSE-2.0 rem rem Unless required by applicable law or agreed to in writing, software rem distributed under the License is distributed on an "AS IS" BASIS, rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. rem See the License for the specific language governing permissions and rem limitations under the License. if "%OS%" == "Windows_NT" setlocal rem --------------------------------------------------------------------------- rem NT Service Install/Uninstall script rem rem Options rem install Install the service using Tomcat7 as service name. rem Service is installed using default settings. rem remove Remove the service from the System. rem rem name (optional) If the second argument is present it is considered rem to be new service name rem rem $Id: service.bat 1000718 2010-09-24 06:00:00Z mturk $ rem --------------------------------------------------------------------------- rem ---------XAMPP------------------------------------------------------------- :::::::::::::::::::::::::::::::::::: :: Set JAVA_HOME or JRE_HOME :: :::::::::::::::::::::::::::::::::::: echo. echo [XAMPP]: Searching for JDK or JRE HOME with reg query ... set JDKKeyName64=HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit set JDKKeyName32=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit set JREKeyName64=HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment set JREKeyName32=HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\JavaSoft\Java Runtime Environment reg query "%JDKKeyName64%" /s if %ERRORLEVEL% EQU 1 ( echo . [XAMPP]: Could not find 32 bit or 64 bit JDK echo . [XAMPP]: Looking for 32 bit JDK on 64 bit machine goto FINDJDK32 ) set KeyName=%JDKKeyName64% goto JDKRUN :FINDJDK32 reg query "%JDKKeyName32%" /s if %ERRORLEVEL% EQU 1 ( echo . [XAMPP]: Could not find 32 bit JDK echo . [XAMPP]: Looking for 32 bit or 64 bit JRE goto FINDJRE64 ) set KeyName=%JDKKeyName32% goto JDKRUN :FINDJRE64 reg query "%JREKeyName64%" /s if %ERRORLEVEL% EQU 1 ( echo . [XAMPP]: Could not find 32 bit or 64 bit JRE echo . [XAMPP]: Looking for 32 bit JRE on 64 bit machine goto FINDJRE32 ) set KeyName=%JREKeyName64% goto JRERUN :FINDJRE32 reg query "%JREKeyName32%" /s if %ERRORLEVEL% EQU 1 ( echo . [XAMPP]: Could not find 32 bit JRE echo . [XAMPP]: Could not set JAVA_HOME or JRE_HOME. Aborting goto ENDERROR ) set KeyName=%JREKeyName32% goto JRERUN :JDKRUN echo. echo [XAMPP]: Using JDK set "CURRENT_DIR=%cd%" set "CATALINA_HOME=%CURRENT_DIR%\tomcat" set Cmd=reg query "%KeyName%" /s for /f "tokens=2*" %%i in ('%Cmd% ^ |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0468 ]-- |