anchor.diff:  call functions\log.bat "%CUR_DATE% %TIME%    Launch job 'Install Windows updates'..."
   if /i %SKIP_WINDOWS_UPDATES%==no (
   	if /i %DRY_RUN%==no wuauclt /detectnow /updatenow
  +	ping 127.0.0.1 -n 10 >nul
   	call functions\log.bat "%CUR_DATE% %TIME%    Done."
   ) else (
   	call functions\log.bat "%CUR_DATE% %TIME% !  SKIP_WINDOWS_UPDATES (-sw) set. Skipping Windows Updates."
  
positive.code: ::                2. Safe mode is strongly recommended (though not required)
  ::                3. Called from tron.bat. If you try to run this script directly it will error out
  :: Author:        vocatus on reddit.com/r/TronScript ( vocatus.gate at gmail ) // PGP key: 0x07d1490f82a211a2
  :: Version:       1.1.1 - Remove internal log function and switch to Tron's external logging function. Thanks to github:nemchik
  ::                1.1.0 * Only patch each program if it already exists on the system. Thanks to /u/Tech604
  ::                1.0.0 + Initial write
  @echo off
  
negative.code: title TRON v%SCRIPT_VERSION% [stage_5_patch] [Rebuild Windows Update base]
  call functions\log.bat "%CUR_DATE% %TIME%    Launch job 'DISM base reset'..."
  if /i %DRY_RUN%==no (
  	:: 7/2008R2 and up
  	if %WIN_VER_NUM% geq 6.1 (
  		Dism /online /Cleanup-Image /StartComponentCleanup /ResetBase /Logpath:"%LOGPATH%\dism_base_reset.log" >nul 2>&1
  		type "%LOGPATH%\dism_base_reset.log" >> "%LOGPATH%\%LOGFILE%"
  		del /f /q "%LOGPATH%\dism_base_reset.log"
  	)
  	:: Vista version
  	if %WIN_VER_NUM% equ 6.0 (
  		Dism /online /Cleanup-Image /StartComponentCleanup /Logpath:"%LOGPATH%\dism_base_reset.log" >nul 2>&1
  		type "%LOGPATH%\dism_base_reset.log" >> "%LOGPATH%\%LOGFILE%"
  		del /f /q "%LOGPATH%\dism_base_reset.log"
  	)
  )
  call functions\log.bat "%CUR_DATE% %TIME%    Done."
  