anchor.diff:  	:: All other versions of Windows
   	:: Extract the line containing the current power GUID
   	for /f "delims=" %%i in ('powercfg -list ^| find "*"') do (set t=%%i)
  -	:: Parse out just the GUID and stash it in a variable
  +	:: Parse out the GUID and stash it in a variable
   	set POWER_SCHEME=!t:~19,36!
   	:: Export the power scheme based on this GUID
   	powercfg /EXPORT %LOGPATH%\tron_power_config_backup.pow !POWER_SCHEME!
   	:: Set the "High Performance" scheme active
   	powercfg /SETACTIVE 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
  +	:: We use exclamation points around WIN_VER here because "Vista (TM) Home Premium" has parenthesis in the name which breaks the script. Sigh. Thanks to /u/XtraSharp for finding this rare and exclusive crash condition. Five points
   	echo %CUR_DATE% %TIME%    !WIN_VER! detected, disabling system sleep on laptop lid close...>> "%LOGPATH%\%LOGFILE%"
   	echo %CUR_DATE% %TIME%    !WIN_VER! detected, disabling system sleep on laptop lid close...
   	:: Disable system sleep when laptop lid closes. Thanks to /u/ComputersByte for the suggestion
  -	:: OK, this line looks bonkers, but it's fairly straight-forward. There are three GUIDs and a setting here, as follows:
  +	:: This line looks bonkers, but it's fairly straight-forward. There are three GUIDs and a setting here, as follows:
   	::	1st: Master GUID of the "High Performance" power scheme
   	::	2nd: Subgroup GUID of the "Power buttons and lid" category
  -	::	3rd: Specific "Lid close action" power setting GUID
  +	::	3rd: Specific GUID for the "Lid close action" power setting
   	::	4th: Action code for "Do nothing"
   	powercfg -SETACVALUEINDEX 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 000
   	)
  
positive.code: pushd disable_sleep
  if /i %DRY_RUN%==yes goto skip_disable_sleep
  
  echo %CUR_DATE% %TIME%    Exporting current power scheme and switching to Always On...>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Exporting current power scheme and switching to Always On...
  
  :: Export the current power scheme to a file. Thanks to reddit.com/user/GetOnMyAmazingHorse
  SETLOCAL ENABLEDELAYEDEXPANSION
  
negative.code: :end_and_skip_shutdown
  pause
  color
  ENDLOCAL
  