anchor.diff:  :: JOB: Sophos Virus Remover
   echo %CUR_DATE% %TIME%    Launch job 'Sophos Virus Removal Tool' (slow, be patient)...>> "%LOGPATH%\%LOGFILE%"
   echo %CUR_DATE% %TIME%    Launch job 'Sophos Virus Removal Tool' (slow, be patient)...
  -echo %CUR_DATE% %TIME%    Scan in progress. Output hidden by default (use -v to show)...>> "%LOGPATH%\%LOGFILE%"
  -echo %CUR_DATE% %TIME%    Scan in progress. Output hidden by default (use -v to show)...
  +echo %CUR_DATE% %TIME%    Scanning. Output REDUCED by default (use -v to show)...>> "%LOGPATH%\%LOGFILE%"
  +echo %CUR_DATE% %TIME%    Scanning. Output REDUCED by default (use -v to show)...
   echo.
   if /i %DRY_RUN%==no (
  -	if exist %ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\SophosVirusRemovalTool.log del /f /q %ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\SophosVirusRemovalTool.log 2>NUL
  +	if exist "%ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\SophosVirusRemovalTool.log" del /f /q "%ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\SophosVirusRemovalTool.log" 2>NUL
   	if /i %VERBOSE%==no	stage_3_disinfect\sophos_virus_remover\svrtcli.exe -yes
   	if /i %VERBOSE%==yes stage_3_disinfect\sophos_virus_remover\svrtcli.exe -yes -debug
  -	type %ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\SophosVirusRemovalTool.log >> "%LOGPATH%\%LOGFILE%"
  -	del /f /q %ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\SophosVirusRemovalTool.log 2>NUL
  +	type "%ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\SophosVirusRemovalTool.log" >> "%LOGPATH%\%LOGFILE%"
  +	if exist "%ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\SophosVirusRemovalTool.log" del /f /q "%ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\SophosVirusRemovalTool.log" 2>NUL
   	)
   echo %CUR_DATE% %TIME%    Done.>> "%LOGPATH%\%LOGFILE%"
   echo %CUR_DATE% %TIME%    Done.
  
positive.code: :: Big time thanks to reddit.com/user/Suddenly_Engineer and reddit.com/user/Aberu for helping with this
  set SSD_DETECTED=no
  SETLOCAL ENABLEDELAYEDEXPANSION
  for /f "tokens=1" %%i in ('stage_5_optimize\defrag\smartctl --scan') do (
  	smartctl %%i -a | find /i "Solid State" >NUL
  	if "!ERRORLEVEL!"=="0" ENDLOCAL DISABLEDELAYEDEXPANSION && set SSD_DETECTED=yes&& goto detect_safe_mode
  	)
  for /f "tokens=1" %%i in ('stage_5_optimize\defrag\smartctl --scan') do (
  	smartctl %%i -a | find /i "SSD" >NUL
  	if "!ERRORLEVEL!"=="0" ENDLOCAL DISABLEDELAYEDEXPANSION && set SSD_DETECTED=yes&& goto detect_safe_mode
  	)
  for /f "tokens=1" %%i in ('stage_5_optimize\defrag\smartctl --scan') do (
  	smartctl %%i -a | find /i "RAID" >NUL
  	if "!ERRORLEVEL!"=="0" ENDLOCAL DISABLEDELAYEDEXPANSION && set SSD_DETECTED=yes&& goto detect_safe_mode
  	)
  for /f "tokens=1" %%i in ('stage_5_optimize\defrag\smartctl --scan') do (
  	smartctl %%i -a | find /i "SandForce" >NUL
  	if "!ERRORLEVEL!"=="0" ENDLOCAL DISABLEDELAYEDEXPANSION && set SSD_DETECTED=yes&& goto detect_safe_mode
  	)
  ENDLOCAL DISABLEDELAYEDEXPANSION
  
negative.code: :: JOB: Remove crapware programs, phase 2 (by GUID)
  echo %CUR_DATE% %TIME%    Attempt junkware removal: Phase 2 (by GUID)...>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Attempt junkware removal: Phase 2 (by GUID)...
  echo %CUR_DATE% %TIME%    Customize here: \resources\stage_2_de-bloat\oem\programs_to_target_by_GUID.bat>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Customize here: \resources\stage_2_de-bloat\oem\programs_to_target_by_GUID.bat
  if /i %DRY_RUN%==no call stage_2_de-bloat\oem\programs_to_target_by_GUID.bat
  echo %CUR_DATE% %TIME%    Done.>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Done.
  