anchor.diff:  ::                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.1 - Remove internal log function and switch to Tron's external logging function. Thanks to github:nemchik
  +:: 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
   
  
positive.code: :::::::::::::::::::::
  :: PREP AND CHECKS ::
  :::::::::::::::::::::
  set STAGE_6_SCRIPT_VERSION=1.0.1
  set STAGE_6_SCRIPT_DATE=2015-12-09
  
  :: Quick check to see if we inherited the appropriate variables from Tron.bat
  if /i "%LOGFILE%"=="" (
  
negative.code: 	call functions\log.bat "%CUR_DATE% %TIME%    Done."
  )
  
  :: JOB: Check status of SKIP_DEFRAG and run defrag if no issues
  if /i "%SKIP_DEFRAG%"=="yes" call functions\log.bat "%CUR_DATE% %TIME% !  SKIP_DEFRAG (-sd) set. Skipping defrag of %SystemDrive%."
  if /i "%SKIP_DEFRAG%"=="yes_ssd" call functions\log.bat "%CUR_DATE% %TIME% !  Solid State hard drive detected. Skipping defrag of %SystemDrive%."
  if /i "%SKIP_DEFRAG%"=="yes_vm" call functions\log.bat "%CUR_DATE% %TIME% !  Virtual Machine detected. Skipping defrag of %SystemDrive%."
  if /i "%SKIP_DEFRAG%"=="yes_error" call functions\log.bat "%CUR_DATE% %TIME% !  Error reading %SystemDrive% disk stats. Skipping defrag as a precaution."
  if /i "%SKIP_DEFRAG%"=="no" (
  	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
  