anchor.diff:  :::::::::::::::::::::
   :: PREP AND CHECKS ::
   :::::::::::::::::::::
  -set STAGE_6_SCRIPT_VERSION=1.0.1
  -set STAGE_6_SCRIPT_DATE=2015-12-09
  +set STAGE_6_SCRIPT_VERSION=1.0.2
  +set STAGE_6_SCRIPT_DATE=2016-01-08
   
   :: Quick check to see if we inherited the appropriate variables from Tron.bat
   if /i "%LOGFILE%"=="" (
  
positive.code: 	call functions\log.bat "%CUR_DATE% %TIME%    Done."
  )
  
  :: Check if SKIP_DEFRAG was used
  if "%SKIP_DEFRAG%"=="yes" (
  	call functions\log.bat "%CUR_DATE% %TIME% !  SKIP_DEFRAG (-sd) set. Skipping defrag."
  	goto stage_6_optimize_end
  	)
  
  :: JOB: Defrag the system drive
  if "%SSD_DETECTED%"=="yes" (
  	call functions\log.bat "%CUR_DATE% %TIME%    Solid State hard drive detected. Skipping job 'Defrag %SystemDrive%'."
  ) else (
  	title TRON v%SCRIPT_VERSION% [stage_6_optimize] [Defrag]
  	call functions\log.bat "%CUR_DATE% %TIME%    Launch job 'Defrag %SystemDrive%'..."
  	if /i %DRY_RUN%==no stage_6_optimize\defrag\defraggler.exe %SystemDrive% /MinPercent 5
  
negative.code: ::                2. Safe mode is strongly recommended (though not required)
  ::                3. Called from tron.bat. If you try to run this script directly it will error out
  :: Author:        vocatus on reddit.com/r/TronScript ( vocatus.gate at gmail ) // PGP key: 0x07d1490f82a211a2
  :: Version:       1.0.2 + Add support for multiple SKIP_DEFRAG variable values
  ::                1.0.1 - Remove internal log function and switch to Tron's external logging function. Thanks to github:nemchik
  ::                1.0.0 + Initial write
  @echo off
  
  