anchor.diff:  set CLASSPATH=%OLD_CLASSPATH%
   goto :eof
   
  -
  -
   :concat
   
   if %1 == %2 goto skip
   
   SET strg=%strg% %1
   
  -
  -
   :concatsep
   
   if "%CP%" == "" (
  -
   set CP=%LIBDIR%\%1
  -
   )else (
  -
   set CP=%CP%;%LIBDIR%\%1
  -
   )
   
  -
  -
   :skip
  
positive.code: :: Windows launcher script for Gremlin Groovy
  
  @echo off
  
  
  ::cd ..\lib
  
  ::set LIBDIR=%CD%
  
  
  set LIBDIR=..\lib
  
  
  set OLD_CLASSPATH=%CLASSPATH%
  set CP=
  
  
  for %%i in (%LIBDIR%\*.jar) do call :concatsep %%i
  
  :: cd ..\..\..\
  
  
  set JAVA_OPTIONS=-Xms32m -Xmx512m
  
  
  :: Launch the application
  
  if "%1" == "" goto console
  
  if "%1" == "-e" goto script
  
  if "%1" == "-v" goto version
  
  
  
  :console
  
  
negative.code: set CLASSPATH=%OLD_CLASSPATH%
  goto :eof
  
  :script
  
  set strg=
  
  FOR %%X IN (%*) DO (
  CALL :concat %%X %1 %2
  )
  
  set CLASSPATH=%CP%;%OLD_CLASSPATH%
  java %JAVA_OPTIONS% %JAVA_ARGS% com.tinkerpop.gremlin.groovy.jsr223.ScriptExecutor %strg%
  set CLASSPATH=%OLD_CLASSPATH%
  goto :eof
  
  :version
  
  