anchor.diff:  
   
   :: JOB: Create post-run Restore Point
  -title Tron v%SCRIPT_VERSION% [stage_7_wrap-up] [Create Restore Point]
  +title Tron v%TRON_VERSION% [stage_7_wrap-up] [Create Restore Point]
   if %WIN_VER_NUM% geq 6.0 (
   	REM Remove the stupid restore point creation 24 hour cooldown timer Microsoft brilliantly introduced in Windows 8 and up
   	if %WIN_VER_NUM% geq 6.2 reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore" /t reg_dword /v SystemRestorePointCreationFrequency /d 0 /f >nul 2>&1
   	REM Create the restore point
  -	echo "%WIN_VER%" | findstr /i /c:"server" >NUL || (
  +	echo "%WIN_VER%" | %FINDSTR% /i /c:"server" >NUL || (
   		call functions\log.bat "%CUR_DATE% %TIME%    Creating post-run Restore Point..."
  -		if /i %DRY_RUN%==no	powershell "Checkpoint-Computer -Description 'TRON v%SCRIPT_VERSION%: Post-run checkpoint' | Out-Null" >> "%LOGPATH%\%LOGFILE%" 2>&1
  +		if /i %DRY_RUN%==no	powershell "Checkpoint-Computer -Description 'TRON v%TRON_VERSION%: Post-run checkpoint' | Out-Null" >> "%LOGPATH%\%LOGFILE%" 2>&1
   	)
   )
   call functions\log.bat "%CUR_DATE% %TIME%    OK."
   
   
   :: JOB: Calculate saved disk space
  -title Tron v%SCRIPT_VERSION% [stage_7_wrap-up] [Calculate saved disk space]
  +title Tron v%TRON_VERSION% [stage_7_wrap-up] [Calculate saved disk space]
   for /F "tokens=2 delims=:" %%a in ('fsutil volume diskfree %SystemDrive% ^| %FIND% /i "avail free"') do set bytes=%%a
   :: GB version
   ::set /A FREE_SPACE_BEFORE=%bytes:~0,-3%/1024*1000/1024/1024
  
positive.code: )
  
  
  :: INTERNAL PREP: Check if we're on an unsupported OS. If we are, complain to the user and bail
  if "%WIN_VER:~0,19%"=="Windows Server 2016" (
  	if /i %DEV_MODE%==no (
  		color 0c
  		echo.
  		echo  ^! ERROR
  		echo.
  		echo    Tron does not support "%WIN_VER%" ^(yet^).
  		echo.
  		echo    If you want to override and run anyway, re-run
  		echo    Tron from the command-line with the -dev flag.
  		echo.
  		echo    Keep in mind that by doing this you're waiving
  		echo    your already non-existent warranty!
  		echo.
  		pause
  		goto eof
  	)
  )
  
  
  :: INTERNAL PREP: Detect Solid State hard drives or Virtual Machine installation (determines if post-run defrag executes or not)
  :: Basically we use a trick to set the global SKIP_DEFRAG variable outside of the setlocal block by stacking it on the same line so it gets executed along with ENDLOCAL
  pushd stage_6_optimize\defrag\
  	for /f %%i in ('smartctl.exe --scan') do smartctl.exe %%i -a | findstr /i "Solid SSD RAID SandForce" >NUL && set SKIP_DEFRAG=yes_ssd
  	for /f %%i in ('smartctl.exe --scan') do smartctl.exe %%i -a | findstr /i "VMware VBOX XENSRC PVDISK" >NUL && set SKIP_DEFRAG=yes_vm
  	for /f %%i in ('smartctl.exe --scan') do smartctl.exe %%i -a | %FIND% /i "Read Device Identity Failed" >NUL && set SKIP_DEFRAG=yes_error
  popd
  
  
  :: INTERNAL PREP: Get free space on the system drive and stash it for comparison later
  :freespace_check
  for /F "tokens=2 delims=:" %%a in ('fsutil volume diskfree %SystemDrive% ^| %FIND% /i "avail free"') do set bytes=%%a
  :: GB version
  ::set /A FREE_SPACE_BEFORE=%bytes:~0,-3%/1024*1000/1024/1024
  :: MB version
  set /A FREE_SPACE_BEFORE=%bytes:~0,-3%/1024*1000/1024
  
  
  :: INTERNAL PREP: Check if we're resuming from a failed or incomplete previous run (often caused by forced reboots in stage_2_de-bloat)
  
negative.code: :stage_5_patch
  :: Stamp current stage so we can resume if we get interrupted by a reboot
  echo stage_5_patch>tron_stage.txt
  title Tron v%TRON_VERSION% [stage_5_patch]
  call stage_5_patch\stage_5_patch.bat
  
  
  