anchor.diff:  
   set SCHED_OUT=SchedulerStarter.output
   
  -SETLOCAL ENABLEDELAYEDEXPANSION
   call init.bat scheduler-log4j-server
   echo %JAVA_CMD% %SCHED_JVM_D_OPTS% org.ow2.proactive.scheduler.util.SchedulerStarter > run.tmp.bat
   echo EXIT >> run.tmp.bat
   
   echo Starting the scheduler (starter output is redirected to the %SCHED_OUT%)
   START /B "Scheduler" run.tmp.bat > %SCHED_OUT%
  -ENDLOCAL
   
   call :find_process_by_cmd SchedulerStarter
   IF [%_result%]==[] (
  
positive.code:         set SCHED_PID=%_result%
  )
  
  set SCHED_URL_STR=
  set RM_URL_STR=
  :WaitLoop
          for /f "tokens=*" %%i in ('FINDSTR /C:"The resource manager with 4 local nodes created on" %SCHED_OUT%') do set RM_URL_STR=%%i
          IF NOT ["%RM_URL_STR%"]==[""] (
                  SET RM_URL=%RM_URL_STR:~50%
          )
  
          for /f "tokens=*" %%i in ('FINDSTR /C:"The scheduler created on" %SCHED_OUT%') do set SCHED_URL_STR=%%i
          IF ["%SCHED_URL_STR%"]==[""] (
                  echo Waiting for the scheduler...
                  call :delay 5 
          ) ELSE (
                  SET SCHED_URL=%SCHED_URL_STR:~24%
                  GOTO :EndWaitLoop
          )
  
  
negative.code:         goto :eof
  
  :delay
          ping -n %1 127.0.0.1 > NUL
          goto :eof
  
  :eof
  