anchor.diff:  
   
   :: Stage complete
  -call functions\log_with_date.bat "   stage_6_optimize complete."
  +call functions\log_with_date.bat "  stage_6_optimize complete."
  
positive.code: :::::::::::::::::::::
  :: PREP AND CHECKS ::
  :::::::::::::::::::::
  set STAGE_6_SCRIPT_VERSION=1.0.5
  set STAGE_6_SCRIPT_DATE=2017-03-02
  
  :: Check for standalone vs. Tron execution and build the environment if running in standalone mode
  if /i "%LOGFILE%"=="" (
  
negative.code: :::::::::::::::::::::::
  :: STAGE 6: Optimize :: // Begin jobs
  :::::::::::::::::::::::
  call functions\log_with_date.bat "  stage_6_optimize begin..."
  
  
  :: JOB: Reset the system page file settings
  title Tron v%TRON_VERSION% [stage_6_optimize] [PageFileReset]
  if /i %SKIP_PAGEFILE_RESET%==yes (
  	call functions\log_with_date.bat "!  SKIP_PAGEFILE_RESET (-spr) set. Skipping page file reset."
  ) else (
  	call functions\log_with_date.bat "   Resetting page file settings to Windows defaults..."
  	if /i %DRY_RUN%==no <NUL %WMIC% computersystem where name="%computername%" set AutomaticManagedPagefile=True >> "%LOGPATH%\%LOGFILE%" 2>&1
  	call functions\log_with_date.bat "   Done."
  )
  
  
  :: JOB: Check status of SKIP_DEFRAG and run defrag if no issues
  if /i "%SKIP_DEFRAG%"=="yes" call functions\log_with_date.bat "!  SKIP_DEFRAG (-sd) set. Skipping defrag of %SystemDrive%."
  if /i "%SKIP_DEFRAG%"=="yes_ssd" call functions\log_with_date.bat "   Solid State hard drive detected. Skipping defrag of %SystemDrive%."
  if /i "%SKIP_DEFRAG%"=="yes_vm" call functions\log_with_date.bat "   Virtual Machine detected. Skipping defrag of %SystemDrive%."
  if /i "%SKIP_DEFRAG%"=="yes_error" (
  	call functions\log_with_date.bat "!  WARNING: Error reading %SystemDrive% disk stats. Skipping defrag as a precaution."
  	set WARNINGS_DETECTED=yes
  )
  if /i "%SKIP_DEFRAG%"=="no" (
  	title Tron v%TRON_VERSION% [stage_6_optimize] [Defrag]
  	call functions\log_with_date.bat "   Launch job 'Defrag %SystemDrive%'..."
  	if /i %DRY_RUN%==no stage_6_optimize\defrag\defraggler.exe %SystemDrive% /MinPercent 5
  	call functions\log_with_date.bat "   Done."
  )
  
  
  