anchor.diff:  )
   
   
  -:: JOB: chkdsk the system drive
  -title TRON v%SCRIPT_VERSION% [stage_5_optimize] [chkdsk]
  -call :log "%CUR_DATE% %TIME%    Launch job 'chkdsk'..."
  -call :log "%CUR_DATE% %TIME%    Checking %SystemDrive% for errors..."
  -
  -:: Run a read-only scan and look for errors. Schedule a scan at next reboot if errors found
  -if /i %DRY_RUN%==no %SystemRoot%\System32\chkdsk.exe %SystemDrive%
  -if /i not %ERRORLEVEL%==0 ( 
  -	call :log "%CUR_DATE% %TIME% !  Errors found on %SystemDrive%. Scheduling full chkdsk at next reboot."
  -	if /i %DRY_RUN%==no fsutil dirty set %SystemDrive%
  -) else (
  -	call :log "%CUR_DATE% %TIME%    No errors found on %SystemDrive%. Skipping full chkdsk at next reboot."
  -	)
  -	
  -call :log "%CUR_DATE% %TIME%    Done."
  -
  -
  -:: Check if we are supposed to run a defrag before doing this section
  +:: Check if we are supposed to run a defrag before doing the section below
   if "%SKIP_DEFRAG%"=="yes" (
   	call :log "%CUR_DATE% %TIME%    SKIP_DEFRAG ^(-sd^) set. Skipping defrag."
  -	call :log "%CUR_DATE% %TIME%   stage_5_optimize jobs complete."
  -	goto stage_6_wrap-up
  -	)
  -
  -:: Check if a Solid State hard drive was detected before doing this section
  +	call :log "%CUR_DATE% %TIME%   stage_6_optimize jobs complete."
  +	goto stage_7_wrap-up
  +	)
  +
  +:: Check if a Solid State hard drive was detected before doing the section below
   if "%SSD_DETECTED%"=="yes" (
   	call :log "%CUR_DATE% %TIME%    Solid State hard drive detected. Skipping job 'Defrag %SystemDrive%'."
  -	call :log "%CUR_DATE% %TIME%   stage_5_optimize jobs complete."
  -	goto stage_6_wrap-up
  +	call :log "%CUR_DATE% %TIME%   stage_6_optimize jobs complete."
  +	goto stage_7_wrap-up
   	)
   
   :: JOB: Defrag the system drive
   if "%SSD_DETECTED%"=="no" (
  -	title TRON v%SCRIPT_VERSION% [stage_5_optimize] [Defrag]
  +	title TRON v%SCRIPT_VERSION% [stage_6_optimize] [Defrag]
   	call :log "%CUR_DATE% %TIME%    Launch job 'Defrag %SystemDrive%'..."
  -	if /i %DRY_RUN%==no stage_5_optimize\defrag\defraggler.exe %SystemDrive% /MinPercent 5
  +	if /i %DRY_RUN%==no stage_6_optimize\defrag\defraggler.exe %SystemDrive% /MinPercent 5
   	call :log "%CUR_DATE% %TIME%    Done."
  -	call :log "%CUR_DATE% %TIME%   stage_5_optimize jobs complete."
  +	call :log "%CUR_DATE% %TIME%   stage_6_optimize jobs complete."
   	)
   
   
   ::::::::::::::::::::::
  -:: STAGE 6: Wrap-up ::
  +:: STAGE 7: Wrap-up ::
   ::::::::::::::::::::::
  -:stage_6_wrap-up
  +:stage_7_wrap-up
   :: Stamp current stage so we can resume if we get interrupted by a reboot
  -echo stage_6_wrap-up>tron_stage.txt
  -call :log "%CUR_DATE% %TIME%   stage_6_wrap-up jobs begin..."
  +echo stage_7_wrap-up>tron_stage.txt
  +call :log "%CUR_DATE% %TIME%   stage_7_wrap-up jobs begin..."
   
   :: JOB: If selected, import original power settings, re-activate them, and delete the backup
   :: Otherwise, just reset power settings back to their defaults
   if "%PRESERVE_POWER_SCHEME%"=="yes" (
  -	title TRON v%SCRIPT_VERSION% [stage_6_wrap-up] [Restore power scheme]
  +	title TRON v%SCRIPT_VERSION% [stage_7_wrap-up] [Restore power scheme]
   	call :log "%CUR_DATE% %TIME%    Restoring power settings to previous values..."
   	REM Check for Windows XP/2k3
   	if /i "%WIN_VER:~0,9%"=="Microsoft" (
  
positive.code: :: SKIP_DEFRAG           (-sd)  = Set to yes to skip defrag regardless whether the system drive is an SSD or not. When set to "no" the script will auto-detect SSDs and skip defrag if one is detected
  :: SKIP_EVENT_LOG_CLEAR  (-se)  = Set to yes to skip Event Log clearing
  :: SKIP_PATCHES          (-sp)  = Set to yes to skip patches (do not patch 7-Zip, Java Runtime, Adobe Flash Player and Adobe Reader)
  :: SKIP_PAGEFILE_RESET   (-spr) = Skip page file reset (don't set to "Let Windows manage the page file")
  :: SKIP_WINDOWS_UPDATES  (-sw)  = Set to yes to skip Windows Updates
  :: VERBOSE               (-v)   = When possible, show as much output as possible from each program Tron calls (e.g. Sophos, KVRT, etc). NOTE: This is often much slower
  :: SELF_DESTRUCT         (-x)   = Set to yes to have Tron automatically delete itself after running. Leaves logs intact
  
negative.code: 
  
  :: JOB: Collect misc logs and deposit them in the log folder. Thanks to /u/swtester
  title TRON v%SCRIPT_VERSION% [stage_7_wrap-up] [Collect logs]
  call :log "%CUR_DATE% %TIME%    Saving misc logs to "%RAW_LOGS%\"..."
  if exist "%ProgramData%\Sophos\Sophos Virus Removal Tool\Logs" copy /Y "%ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\*.l*" "%RAW_LOGS%" >NUL
  if exist "%ProgramData%\Malwarebytes\Malwarebytes Anti-Malware\Logs" copy /Y "%ProgramData%\Malwarebytes\Malwarebytes Anti-Malware\Logs\*.xml" "%RAW_LOGS%" >NUL
  