anchor.diff:  	cd \
   	rmdir /s /q "%CWD%"
   	exit
  -	)
  +)
   
   :end_and_skip_shutdown
   echo.
  
positive.code: 
  
  :: JOB: Create post-run Restore Point
  title Tron v%SCRIPT_VERSION% [stage_0_prep] [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
  
negative.code: call functions\log.bat "-------------------------------------------------------------------------------"
  
  
  :: JOB: Send the email report if it was requested
  :: The below line needed for param5 (/p5) argument sent to SwithMail. It populates a list of Command-line switches that were used
  set ARGUMENTS='%*'
  SETLOCAL ENABLEDELAYEDEXPANSION
  if /i %EMAIL_REPORT%==yes (
  	if /i %DRY_RUN%==no (
  		stage_7_wrap-up\email_report\SwithMail.exe /s /x "stage_7_wrap-up\email_report\SwithMailSettings.xml" /l "%RAW_LOGS%\swithmail.log" /a "%LOGPATH%\%LOGFILE%|%SUMMARY_LOGS%\tron_removed_files.txt|%SUMMARY_LOGS%\tron_removed_programs.txt" /p1 "Tron v%SCRIPT_VERSION% (%SCRIPT_DATE%) executed as %USERDOMAIN%\%USERNAME%" /p2 "%LOGPATH%\%LOGFILE%" /p3 "%SAFE_MODE% %SAFEBOOT_OPTION%" /p4 "%FREE_SPACE_BEFORE%/%FREE_SPACE_AFTER%/%FREE_SPACE_SAVED%" /p5 "%ARGUMENTS%"
  
  		if !ERRORLEVEL!==0 (
  			call functions\log.bat "%CUR_DATE% %TIME%   Done."
  		) else (
  			call functions\log.bat "%CUR_DATE% %TIME% ^! Something went wrong, email may not have gone out. Check your settings."
  		)
  	)
  )
  ENDLOCAL DISABLEDELAYEDEXPANSION
  
  
  
  :: JOB: Upload debug logs if requested
  :: The below line needed for param5 (/p5) argument sent to SwithMail. It populates a list of Command-line switches that were used
  set ARGUMENTS='%*'
  SETLOCAL ENABLEDELAYEDEXPANSION
  if /i %UPLOAD_DEBUG_LOGS%==yes (
  	if /i %DRY_RUN%==no (
  		stage_7_wrap-up\email_report\SwithMail.exe /s /x "stage_7_wrap-up\email_report\debug_log_upload_settings.xml" /l "%userprofile%\desktop\swithmail.log" /a "%LOGPATH%\%LOGFILE%|%RAW_LOGS%\GUID_dump_%COMPUTERNAME%_%CUR_DATE%.txt|%SUMMARY_LOGS%\tron_removed_programs.txt" /p1 "Tron v%SCRIPT_VERSION% (%SCRIPT_DATE%) executed as %USERDOMAIN%\%USERNAME%" /p2 "%LOGPATH%\%LOGFILE%" /p3 "%SAFE_MODE% %SAFEBOOT_OPTION%" /p4 "%FREE_SPACE_BEFORE%/%FREE_SPACE_AFTER%/%FREE_SPACE_SAVED%" /p5 "%ARGUMENTS%"
  
  		if !ERRORLEVEL!==0 (
  			call functions\log.bat "%CUR_DATE% %TIME%   Done."
  		) else (
  			call functions\log.bat "%CUR_DATE% %TIME% ^! Something went wrong, logs may not have uploaded. Please notify Vocatus."
  		)
  	)
  )
  ENDLOCAL DISABLEDELAYEDEXPANSION
  
  
  :: Skip everything below here if we're doing a dry run
  if /i %DRY_RUN%==yes goto end_and_skip_shutdown
  
  :: Perform reboot if requested
  