anchor.diff:  echo                          Free space before Tron run: %FREE_SPACE_BEFORE% MB
   echo                          Free space after Tron run:  %FREE_SPACE_AFTER% MB>> %LOGPATH%\%LOGFILE%
   echo                          Free space after Tron run:  %FREE_SPACE_AFTER% MB
  -echo                          Disk space reclaimed: %FREE_SPACE_SAVED% MB>> %LOGPATH%\%LOGFILE%
  -echo                          Disk space reclaimed: %FREE_SPACE_SAVED% MB
  +echo                          Disk space reclaimed:       %FREE_SPACE_SAVED% MB>> %LOGPATH%\%LOGFILE%
  +echo                          Disk space reclaimed:       %FREE_SPACE_SAVED% MB
   echo ------------------------------------------------------------------------------->> %LOGPATH%\%LOGFILE%
   echo -------------------------------------------------------------------------------
   
  
positive.code: 	echo  * anything that happens, good or bad, is YOUR RESPONSIBILITY.           *
  	echo  *************************************************************************
  	echo.
  	echo  Press any key to accept this agreement and start Tron, or press ctrl^+c
  	echo  to cancel.
  	echo.
  	pause >NUL
  	color 0f
  	)
  
  
negative.code: 
  
  popd
  echo %CUR_DATE% %TIME%   Completed stage_2_de-bloat jobs.>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%   Completed stage_2_de-bloat jobs.
  
  
  ::::::::::::::::::::::::
  :: STAGE 3: Disinfect ::
  ::::::::::::::::::::::::
  :stage_3_disinfect
  
  title TRON v%SCRIPT_VERSION% [stage_3_disinfect]
  pushd resources\stage_3_disinfect
  echo %CUR_DATE% %TIME%   Launch stage_3_disinfect jobs...>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%   Launch stage_3_disinfect jobs...
  
  
  :: JOB: RogueKiller
  :: Thanks to /u/bodkov for suggestion
  echo %CUR_DATE% %TIME%    Launch job 'RogueKiller' (slow, be patient)...>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Launch job 'RogueKiller' (slow, be patient)...
  pushd roguekiller
  if /i %DRY_RUN%==no (
  	if /i %VERBOSE%==yes echo remove| RogueKillerCMD.exe -scan remove
  	if /i %VERBOSE%==no echo remove| RogueKillerCMD.exe -scan remove >> "%LOGPATH%\%LOGFILE%"
  	)
  popd
  echo %CUR_DATE% %TIME%    Done.>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Done.
  
  
  :: JOB: Sophos Virus Remover
  echo %CUR_DATE% %TIME%    Launch job 'Sophos Virus Removal Tool' (slow, be patient)...>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Launch job 'Sophos Virus Removal Tool' (slow, be patient)...
  pushd sophos_virus_remover
  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 2>NUL
  	if /i %VERBOSE%==no	svrtcli.exe -yes
  	if /i %VERBOSE%==yes svrtcli.exe -yes -debug
  	type %ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\SophosVirusRemovalTool.log >> "%LOGPATH%\%LOGFILE%"
  	)
  popd
  echo %CUR_DATE% %TIME%    Done.>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Done.
  
  
  :: JOB: VIPRE Rescue
  :: Haven't been able to figure out where Vipre saves its log file to, so we can't grab it like with do with Sophos above
  echo %CUR_DATE% %TIME%    Launch job 'Vipre rescue scanner' (slow, be patient)...>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Launch job 'Vipre rescue scanner' (slow, be patient)...
  pushd vipre_rescue
  if /i %DRY_RUN%==no ( 
  	if /i %VERBOSE%==no VipreRescueScanner.exe /nolog
  	if /i %VERBOSE%==yes VipreRescueScanner.exe
  	)
  popd
  echo %CUR_DATE% %TIME%    Done.>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Done.
  
  
  :: JOB: MBAM (MalwareBytes Anti-Malware)
  echo %CUR_DATE% %TIME%    Launch job 'Malwarebytes Anti-Malware', continuing other jobs...>>"%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Launch job 'Malwarebytes Anti-Malware', continuing other jobs...
  pushd mbam
  :: Install MBAM & remove the desktop icon
  if /i %DRY_RUN%==no ( 
  	"Malwarebytes Anti-Malware v2.0.3.1025.exe" /verysilent
  	::"Malwarebytes Anti-Malware v1.75.0.1300.exe" /SP- /VERYSILENT /NORESTART /SUPPRESSMSGBOXES /NOCANCEL
  	if exist "%PUBLIC%\Desktop\Malwarebytes Anti-Malware.lnk" del "%PUBLIC%\Desktop\Malwarebytes Anti-Malware.lnk"
  	if exist "%USERPROFILE%\Desktop\Malwarebytes Anti-Malware.lnk" del "%USERPROFILE%\Desktop\Malwarebytes Anti-Malware.lnk"
  	if exist "%ALLUSERSPROFILE%\Desktop\Malwarebytes Anti-Malware.lnk" del "%ALLUSERSPROFILE%\Desktop\Malwarebytes Anti-Malware.lnk"
  
  	:: Scan for and launch appropriate architecture version
  	if exist "%ProgramFiles(x86)%\Malwarebytes Anti-Malware" (
  		pushd "%ProgramFiles(x86)%\Malwarebytes Anti-Malware"
  	) else (
  		pushd "%ProgramFiles%\Malwarebytes Anti-Malware"
  		)
  	start "" "mbam.exe"
  	popd
  )
  
  
  popd
  echo %CUR_DATE% %TIME%    Done.>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Done.
  
  
  :: JOB: Check Windows Image for corruptions before running SFC (Windows 8/2012 only)
  :: Thanks to /u/nomaddave
  echo %CUR_DATE% %TIME%    Launch job 'Dism Windows image check (Win8/2012 only)'...>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Launch job 'Dism Windows image check (Win8/2012 only)'...
  pushd dism_image_check
  if /i %DRY_RUN%==yes goto skip_dism_image_check
  
  :: Read WIN_VER and run the scan if we're on some derivative of 8 or 2012
  if "%WIN_VER:~0,9%"=="Windows Server 2012" (
  	Dism /Online /NoRestart /Cleanup-Image /ScanHealth /Logpath:"%LOGPATH%\tron_dism.log"
  	type "%LOGPATH%\tron_dism.log" >> "%LOGPATH%\%LOGFILE%"
  	)
  if "%WIN_VER:~0,9%"=="Windows 8" (
  	Dism /Online /NoRestart /Cleanup-Image /ScanHealth /Logpath:"%LOGPATH%\tron_dism.log"
  	type "%LOGPATH%\tron_dism.log" >> "%LOGPATH%\%LOGFILE%"
  	)
  	
  :: If we detect errors, try to repair them
  if /i not %ERRORLEVEL%==0 (
  	if "%WIN_VER:~0,9%"=="Windows Server 2012" (
  		echo %CUR_DATE% %TIME% !  DISM: Image corruption detected. Attempting repair...>> "%LOGPATH%\%LOGFILE%"
  		echo %CUR_DATE% %TIME% !  DISM: Image corruption detected. Attempting repair...
  		:: Add /LimitAccess flag to this command to prevent connecting to Windows Update for replacement files
  		Dism /Online /NoRestart /Cleanup-Image /RestoreHealth /Logpath:"%LOGPATH%\tron_dism.log"
  		type "%LOGPATH%\tron_dism.log" >> "%LOGPATH%\%LOGFILE%"
  		)
  	if "%WIN_VER:~0,9%"=="Windows 8" (
  		echo %CUR_DATE% %TIME% !  DISM: Image corruption detected. Attempting repair...>> "%LOGPATH%\%LOGFILE%"
  		echo %CUR_DATE% %TIME% !  DISM: Image corruption detected. Attempting repair...
  		:: Add /LimitAccess flag to this command to prevent connecting to Windows Update for replacement files
  		Dism /Online /NoRestart /Cleanup-Image /RestoreHealth /Logpath:"%LOGPATH%\tron_dism.log"
  		type "%LOGPATH%\tron_dism.log" >> "%LOGPATH%\%LOGFILE%"
  	) else (
  		echo %CUR_DATE% %TIME%    DISM: No image corruption detected.>> "%LOGPATH%\%LOGFILE%"
  		echo %CUR_DATE% %TIME%    DISM: No image corruption detected.
  		)
  	)
  
  :skip_dism_image_check
  popd
  echo %CUR_DATE% %TIME%    Done.>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Done.
  
  
  :: JOB: System File Checker scan
  echo %CUR_DATE% %TIME%    Launch job 'System File Checker'...>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Launch job 'System File Checker'...
  pushd sfc
  if /i %DRY_RUN%==yes goto skip_sfc
  :: Basically this says "If OS is NOT XP or 2003, go ahead and run system file checker"
  if /i not "%WIN_VER:~0,9%"=="Microsoft" %SystemRoot%\System32\sfc.exe /scannow
  :: Dump the SFC log into the Tron log. Thanks to reddit.com/user/adminhugh
  %SystemRoot%\System32\findstr.exe /c:"[SR]" %SystemRoot%\logs\cbs\cbs.log>> "%LOGPATH%\%LOGFILE%"
  :skip_sfc
  popd
  echo %CUR_DATE% %TIME%    Done.>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Done.
  
  
  popd
  echo %CUR_DATE% %TIME%   Completed stage_3_disinfect jobs.>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%   Completed stage_3_disinfect jobs.
  
  :: Since this whole section takes a long time to run, set the date again in case we crossed over midnight during the scans.
  :: This is a half-hearted fix for now. Thanks to /u/ScubaSteve for finding the bug.
  FOR /f %%a in ('WMIC OS GET LocalDateTime ^| find "."') DO set DTS=%%a
  set CUR_DATE=%DTS:~0,4%-%DTS:~4,2%-%DTS:~6,2%
  
  
  ::::::::::::::::::::::
  