anchor.diff:  echo %CUR_DATE% %TIME%    Done.
   
   :: JOB: Reduce SysRestore space
  -echo %CUR_DATE% %TIME%    Reducing max allowed System Restore space to 5%% of disk...>> "%LOGPATH%\%LOGFILE%"
  -echo %CUR_DATE% %TIME%    Reducing max allowed System Restore space to 5%% of disk...
  +echo %CUR_DATE% %TIME%    Reducing max allowed System Restore space to 7%% of disk...>> "%LOGPATH%\%LOGFILE%"
  +echo %CUR_DATE% %TIME%    Reducing max allowed System Restore space to 7%% of disk...
   pushd reduce_system_restore
   if /i %DRY_RUN%==no (
  -	%SystemRoot%\System32\reg.exe add "\\%COMPUTERNAME%\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v DiskPercent /t REG_DWORD /d 00000005 /f
  -	%SystemRoot%\System32\reg.exe add "\\%COMPUTERNAME%\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore\Cfg" /v DiskPercent /t REG_DWORD /d 00000005 /f
  +	%SystemRoot%\System32\reg.exe add "\\%COMPUTERNAME%\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v DiskPercent /t REG_DWORD /d 00000007 /f
  +	%SystemRoot%\System32\reg.exe add "\\%COMPUTERNAME%\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore\Cfg" /v DiskPercent /t REG_DWORD /d 00000007 /f
   	)
   popd
   echo %CUR_DATE% %TIME%    Done.>> "%LOGPATH%\%LOGFILE%"
  
positive.code: :: SAFE MODE CHECK ::
  :::::::::::::::::::::
  :: Check if we're in safe mode
  if not "%SAFE_MODE%"=="yes" (
  		color 0c
  		cls
  		echo.
  
negative.code: 	)
  
  
  :: PREP JOB: Act on autorun flag. Skips safe mode checks, admin rights check, and EULA check. I assume if you use the auto flag (-a) you know what you're doing
  if /i %AUTORUN%==yes goto execute_jobs
  
  
  :: PREP JOB: Display the annoying disclaimer screen. Sigh
  cls
  if /i not %EULA_ACCEPTED%==yes (
  	color FC
  	echo  ************************** ANNOYING DISCLAIMER **************************
  	echo  * NOTE! By running Tron you accept COMPLETE responsibility for ANYTHING *
  	echo  * that happens. Although I think the chance of something bad happening  *
  	echo  * due to Tron is pretty remote, it's always a possibility, and so Tron  *
  	echo  * has ZERO WARRANTY for ANY purpose. READ THE INSTRUCTIONS, and know    *
  	echo  * you run it AT YOUR OWN RISK.                                          *
  	echo  *                                                                       *
  	echo  * Tron.bat and all supporting code and scripts I've written are free    *
  	echo  * and open-source under the MIT License. All 3rd-party tools Tron calls *
  	echo  * ^(MBAM, TDSSK, etc^) are bound by their respective licenses. It is      *
  	echo  * YOUR RESPONSIBILITY to determine if you have the rights to use these  *
  	echo  * tools in whatever environment you use Tron in.                        *
  	echo  *                                                                       *
  	echo  * The bottom line is there is NO WARRANTY, you are ON YOUR OWN, and     *
  	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
  	)
  
  
  :: PREP JOB: UPM detection circuit #1
  if /i %UNICORN_POWER_MODE%==on (color DF) else (color 0f)
  
  
  ::::::::::::::::::::
  :: WELCOME SCREEN ::
  ::::::::::::::::::::
  pushd resources\stage_0_prep\speak
  if %UNICORN_POWER_MODE%==on (
  	nircmd.exe mutesysvolume 0
  	nircmd.exe setsysvolume 49150
  	start "" nircmd.exe speak text "UNICORN POWER MODE ACTIVATED!!" 3 100
  	)
  popd
  cls
  echo  **********************  TRON v%SCRIPT_VERSION% (%SCRIPT_DATE%)  *********************
  echo  * Script to automate a series of cleanup/disinfect tools              *
  echo  * Author: vocatus on reddit.com/r/sysadmin                            *
  echo  *                                                                     *
  echo  * Stage:        Tools:                                                *
  echo  * ------------------------------------------------------------------- *
  echo  *  0 Prep:      rkill, PrcsKillr, TDSSK, reg bckup, SysRstr/VSS clean *
  echo  *  1 TempClean: TempFileCleanup, BlchBit, CCleaner,IE ^& EvtLogs clean *
  echo  *  2 Disinfect: RogueKiller, Sophos, Vipre, MBAM, DISM repair, SFC    *
  echo  *  3 De-bloat:  Remove OEM bloatware, remove OEM Metro bloatware      *
  echo  *  4 Patch:     Update 7-Zip/Java/Flash/Windows, DISM base reset      *
  echo  *  5 Optimize:  chkdsk, defrag %SystemDrive% (mechanical disks only, no SSDs)    *
  echo  *                                                                     *
  echo  * \resources\stage_6_manual_tools contains additional tools which may *
  echo  * be run manually if necessary.                                       *
  echo  ***********************************************************************
  :: So ugly
  echo  Current settings (run tron.bat -c to see FULL config):
  echo    Log location:            %LOGPATH%\%LOGFILE%
  if "%AUTO_REBOOT_DELAY%"=="0" (echo    Auto-reboot delay:       disabled) else (echo    Auto-reboot delay:      %AUTO_REBOOT_DELAY% seconds)
  if "%SSD_DETECTED%"=="yes" (echo    SSD detected?            %SSD_DETECTED% ^(defrag skipped^) ) else (echo    SSD detected?            %SSD_DETECTED%)
  if "%SAFE_MODE%"=="no" (
  		echo    Safe mode?               %SAFE_MODE% ^(not ideal^)
  	) else (
  		if "%SAFEBOOT_OPTION%"=="MINIMAL" echo    Safe mode?               %SAFE_MODE%, without Networking
  		if "%SAFEBOOT_OPTION%"=="NETWORK" echo    Safe mode?               %SAFE_MODE%, with Networking ^(ideal^)
  	)
  if /i not "%SKIP_DEFRAG%"=="no" (
  	echo  ! SKIP_DEFRAG set^; skipping stage_5_optimize ^(defrag^)
  	echo    Runtime estimate:        4-6 hours
  	goto welcome_screen_trailer
  	)
  if "%SSD_DETECTED%"=="yes" (echo    Runtime estimate:        4-6 hours) else (echo    Runtime estimate:        6-8 hours)
  if /i %DRY_RUN%==yes echo  ! DRY_RUN set; will not execute any jobs
  if /i %UNICORN_POWER_MODE%==on echo  ! UNICORN POWER MODE ACTIVATED !!
  echo.
  :welcome_screen_trailer
  pause
  