@echo off if (%OS%) == (Windows_NT) setlocal REM all variables defined local REM set DBG=echo to debug this script. set DBG=REM set args= set JAVA_HOME=%s_jreLocation% set JRECLASSPATH="%s_jreJREclassfile%;%ORACLE_HOME%\jdbc\lib\%s_jreJDBCclassfile%;%ORACLE_HOME%\sqlj\lib\translator.jar;%ORACLE_HOME%\javavm\lib\aurora.zip" :LOOP %DBG% LOOP-%CNT% (loop for args parsing) set/a CNT+=1 set nextarg=%1 set nextarg=%nextarg:"=% if {%1} == {} goto MARK3 if "%nextarg:~0,2%" == "-u" goto MARK1 if "%nextarg:~0,2%" == "-P" goto MARK2 if "%nextarg%" == "-password" goto MARK2 set args=%args% %1 %DBG% %args% shift goto LOOP :MARK1 %DBG% MARK1 hit (-u) set DJUSER="%1 %2" set DJUSER=%DJUSER:"=% shift shift goto LOOP :MARK2 %DBG% MARK1 hit (-P or -password) set DJPASS=%1 set DJPASS=%DJPASS:"=% set DJPASS=%DJPASS% %2 shift shift goto LOOP :MARK3 %DBG% MARK3 hit (end of loop) %DBG% *** user = %DJUSER% *** %DBG% *** password = %DJPASS% *** %DBG% *** args = %args% *** "%s_jreLocation%\bin\%s_jreRunCmd%" -Xint -classpath %JRECLASSPATH% oracle.aurora.server.tools.loadjava.DropJavaMain %args% if (%OS%) == (Windows_NT) endlocal