anchor.diff:  move "%flow_file%.log.tmp" "%flow_file%.log" > nul
   
   rem check report option to generate html automation log
  -for /f "usebackq" %%a in ('%flow_file%.log') do set file_size=%%~za
  -if %file_size% gtr 0 if %tagui_html_report%==true php -q tagui_report.php "%flow_file%"
  +for /f "usebackq" %%f in ('%flow_file%.log') do set file_size=%%~zf
  +if %file_size% gtr 0 if %tagui_html_report%==true (
  +	php -q tagui_report.php "%flow_file%"
  +	gawk "sub(\"$\", \"\")" "%flow_file%.html" > "%flow_file%.html.tmp"
  +	move "%flow_file%.html.tmp" "%flow_file%.html" > nul
  +)
   
   rem change back to initial directory where tagui is called
   cd /d "%initial_dir%"
  
positive.code: set tagui_test_mode=false
  rem check test parameter to run flow as casperjs test automation script
  if "%arg2%"=="test" (
  set arg2=
  set tagui_test_mode=true
  )
  if "%arg3%"=="test" (
  set arg3=
  set tagui_test_mode=true
  )
  if "%arg4%"=="test" (
  set arg4=
  set tagui_test_mode=true
  )
  if "%arg5%"=="test" (
  set arg5=
  set tagui_test_mode=true
  )
  if "%arg6%"=="test" (
  set arg6=
  set tagui_test_mode=true
  )
  if "%arg7%"=="test" (
  set arg7=
  set tagui_test_mode=true
  )
  if "%arg8%"=="test" (
  set arg8=
  set tagui_test_mode=true
  )
  if "%arg9%"=="test" (
  set arg9=
  set tagui_test_mode=true
  )
  
  set tagui_quiet_mode=false
  rem check quiet parameter to run flow quietly by only showing explicit output
  if "%arg2%"=="quiet" (
  set arg2=
  set tagui_quiet_mode=true
  )
  if "%arg3%"=="quiet" (
  set arg3=
  set tagui_quiet_mode=true
  )
  if "%arg4%"=="quiet" (
  set arg4=
  set tagui_quiet_mode=true
  )
  if "%arg5%"=="quiet" (
  set arg5=
  set tagui_quiet_mode=true
  )
  if "%arg6%"=="quiet" (
  set arg6=
  set tagui_quiet_mode=true
  )
  if "%arg7%"=="quiet" (
  set arg7=
  set tagui_quiet_mode=true
  )
  if "%arg8%"=="quiet" (
  set arg8=
  set tagui_quiet_mode=true
  )
  if "%arg9%"=="quiet" (
  set arg9=
  set tagui_quiet_mode=true
  )
  
  set tagui_html_report=false
  rem check report parameter to generate html formatted automation log
  if "%arg2%"=="report" (
  set arg2=
  set tagui_html_report=true
  )
  if "%arg3%"=="report" (
  set arg3=
  set tagui_html_report=true
  )
  if "%arg4%"=="report" (
  set arg4=
  set tagui_html_report=true
  )
  if "%arg5%"=="report" (
  set arg5=
  set tagui_html_report=true
  )
  if "%arg6%"=="report" (
  set arg6=
  set tagui_html_report=true
  )
  if "%arg7%"=="report" (
  set arg7=
  set tagui_html_report=true
  )
  if "%arg8%"=="report" (
  set arg8=
  set tagui_html_report=true
  )
  if "%arg9%"=="report" (
  set arg9=
  set tagui_html_report=true
  )
  
  rem concatenate parameters in order to fix issue when calling casperjs test
  
negative.code: 
  rem then set to node.js dependencies if they exist (for npm install tagui)
  if exist "%~dp0..\..\casperjs\bin\casperjs" set "path=%~dp0..\..\casperjs\bin;%path%"
  if exist "%~dp0..\..\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe" set "path=%~dp0..\..\phantomjs-prebuilt\lib\phantom\bin;%path%"
  if exist "%~dp0..\..\slimerjs\src\slimerjs.bat" set "SLIMERJS_EXECUTABLE=%~dp0..\..\slimerjs\src\slimerjs.bat"
  
  rem finally set to packaged dependencies if they exist (for packaged installation)
  