anchor.diff:  		)
   )
   
  -call :log Done.
  -call :log_alert NOTE: You must manually click SCAN in the MBAM window!
  +call :log "%CUR_DATE% %TIME%    Done."
  +call :log "%CUR_DATE% %TIME% !  NOTE: You must manually click SCAN in the MBAM window!"
  +
  +
  +:: JOB: Kaspersky Virus Removal Tool (KVRT)
  +title TRON v%SCRIPT_VERSION% [stage_0_prep] [Kaspersky VRT]
  +call :log "%CUR_DATE% %TIME%    Launch job 'Kaspersky Virus Removal Tool'..."
  +call :log "%CUR_DATE% %TIME%    Tool-specific log saved to "%RAW_LOGS%\Reports""
  +if /i %DRY_RUN%==no (
  +	start /wait stage_3_disinfect\kaspersky_virus_removal_tool\KVRT.exe -d "%RAW_LOGS%" -accepteula -adinsilent -silent -processlevel 2 -dontcryptsupportinfo
  +	if exist "%RAW_LOGS%\Legal notices" rmdir /s /q "%RAW_LOGS%\Legal notices"
  +	)
  +call :log "%CUR_DATE% %TIME%    Done."
   
   
   :: JOB: Sophos Virus Remover
   title TRON v%SCRIPT_VERSION% [stage_3_disinfect] [Sophos Virus Remover]
  -call :log Launch job 'Sophos Virus Removal Tool' (slow, be patient)...
  -call :log Scanning. Output REDUCED by default (use -v to show)...
  +call :log "%CUR_DATE% %TIME%    Launch job 'Sophos Virus Removal Tool' (slow, be patient)..."
  +call :log "%CUR_DATE% %TIME%    Scanning. Output REDUCED by default (use -v to show)..."
   echo.
   if /i %DRY_RUN%==no (
   	if exist "%ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\SophosVirusRemovalTool.log" del /f /q "%ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\SophosVirusRemovalTool.log" >nul 2>&1
  
positive.code: :: Then we check for Vista, because vssadmin on Vista doesn't support deleting old copies. Sigh.
  if /i not "%WIN_VER:~0,9%"=="Microsoft" (
  	if /i not "%WIN_VER:~0,9%"=="Windows V" (
  		call :log Purging oldest Shadow Copy set (Win7 and up)...
  		if /i %DRY_RUN%==no (
  			:: Force allow us to start VSS service in Safe Mode
  			reg add "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\%SAFEBOOT_OPTION%\VSS" /ve /t reg_sz /d Service /f >nul 2>&1
  			net start VSS >nul 2>&1
  			vssadmin delete shadows /for=%SystemDrive% /oldest /quiet >nul 2>&1
  		)
  		call :log Done.
  	)
  )
  
  
  :: JOB: Disable sleep mode
  call :log Disabling Sleep mode...
  title TRON v%SCRIPT_VERSION% [stage_0_prep] [Power scheme modifications]
  if /i %DRY_RUN%==yes goto skip_disable_sleep
  
  :: Export the current power scheme to a file. Thanks to reddit.com/user/GetOnMyAmazingHorse
  call :log Backing up power scheme and switching to Always On...
  SETLOCAL ENABLEDELAYEDEXPANSION
  :: Windows XP/2003 version
  if /i "%WIN_VER:~0,9%"=="Microsoft" (
  
negative.code: :: Stamp current stage so we can resume if we get interrupted by a reboot
  echo stage_5_optimize>tron_stage.txt
  title TRON v%SCRIPT_VERSION% [stage_5_optimize]
  call :log "%CUR_DATE% %TIME%   stage_5_optimize jobs begin..."
  
  :: 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
  if "%SKIP_DEFRAG%"=="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
  	)
  
  :: Check if a Solid State hard drive was detected before doing this section
  if "%SSD_DETECTED%"=="yes" (
  	call :log Solid State hard drive detected. Skipping job 'Defrag %SystemDrive%'.
  	call :log "%CUR_DATE% %TIME%   stage_5_optimize jobs complete."
  	goto stage_6_wrap-up
  	)
  
  :: JOB: Defrag the system drive
  if "%SSD_DETECTED%"=="no" (
  	title TRON v%SCRIPT_VERSION% [stage_5_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
  	call :log "%CUR_DATE% %TIME%    Done."
  	call :log "%CUR_DATE% %TIME%   stage_5_optimize jobs complete."
  	)
  
  
  