anchor.diff:  @echo off && cls && echo. && echo  Loading...
   color 0f
   set SCRIPT_VERSION=2.3.0
  -set SCRIPT_DATE=2014-08-xx
  +set SCRIPT_DATE=2014-08-23
   title TRON v%SCRIPT_VERSION% (%SCRIPT_DATE%)
   
   :: Get the date into ISO 8601 standard date format (yyyy-mm-dd) so we can use it 
  
positive.code: 
  
  :: PREP JOB: Update check (check if we're running the latest version)
  echo  Checking for updated version...
  pushd resources\stage_0_prep\check_update
  :: Skip this job if we're doing a dry run
  if "%DRY_RUN%"=="yes" goto skip_update_check
  
negative.code: if "%PRESERVE_POWER_SCHEME%"=="yes" (
  	echo %CUR_DATE% %TIME%    Restoring power settings to previous values...>> "%LOGPATH%\%LOGFILE%"
  	echo %CUR_DATE% %TIME%    Restoring power settings to previous values...
  	:: Check for Windows XP
  	if "%WIN_VER%"=="Microsoft Windows XP" (
  		if "%DRY_RUN%"=="no" powercfg /import "%POWER_SCHEME%" /file %LOGPATH%\tron_power_config_backup.pow
  		if "%DRY_RUN%"=="no" powercfg /setactive "%POWER_SCHEME%"
  	) 
  	:: Check for Windows Server 2003
  	if "%WIN_VER%"=="Microsoft Windows Server 2003" (
  			if "%DRY_RUN%"=="no" powercfg /import "%POWER_SCHEME%" /file %LOGPATH%\tron_power_config_backup.pow
  			if "%DRY_RUN%"=="no" powercfg /setactive "%POWER_SCHEME%"
  	) else (
  		:: if we made it this far we're not on XP or 2k3 and we can run the standard commands
  		if "%DRY_RUN%"=="no" powercfg /import %LOGPATH%\tron_power_config_backup.pow %POWER_SCHEME% 2>NUL
  		if "%DRY_RUN%"=="no" powercfg /setactive %POWER_SCHEME% 
  	)
  	:: cleanup
  	del %LOGPATH%\tron_power_config_backup.pow 2>NUL
  ) else (
  	echo %CUR_DATE% %TIME%    Resetting Windows power settings to defaults...>> "%LOGPATH%\%LOGFILE%"
  	echo %CUR_DATE% %TIME%    Resetting Windows power settings to defaults...
  	:: Check for Windows XP
  	if "%WIN_VER%"=="Microsoft Windows XP" (
  		if "%DRY_RUN%"=="no" powercfg /RestoreDefaultPolicies
  	) 
  	:: check for Windows Server 2003
  	if "%WIN_VER%"=="Microsoft Windows Server 2003" (
  		if "%DRY_RUN%"=="no" powercfg /RestoreDefaultPolicies
  	) else (
  		:: if we made it this far we're not on XP or 2k3 and we can run the standard commands
  		if "%DRY_RUN%"=="no" powercfg -restoredefaultschemes
  	)
  )
  