anchor.diff:  :: PREP JOB: Update check (check if we're running the latest 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
  +if /i %DRY_RUN%==yes goto skip_update_check
   
   :: We use wget to fetch md5sums.txt from the repo and parse through it, extracting the latest version number and release date from last line of the file (which is always the latest release)
   :: Get the file from the repo
   wget %REPO_URL%/md5sums.txt -O %TEMP%\md5sums.txt 2>NUL
   :: Assuming there was no error, go ahead and extract version number into REPO_SCRIPT_VERSION, and release date into REPO_SCRIPT_DATE
  -if %ERRORLEVEL%==0 (
  +if /i %ERRORLEVEL%==0 (
   	for /f "tokens=1,2,3 delims= " %%a in (%TEMP%\md5sums.txt) do set WORKING=%%c
   	for /f "tokens=1,2,3,4 delims= " %%a in (%TEMP%\md5sums.txt) do set WORKING2=%%d
   	)
  -if %ERRORLEVEL%==0 (
  +if /i %ERRORLEVEL%==0 (
   	set REPO_SCRIPT_VERSION=%WORKING:~1,6%
   	set REPO_SCRIPT_DATE=%WORKING2:~1,10%
   	)
  
positive.code: 
  :: PREP JOB: Detect Solid State hard drives (determines if post-run defrag executes or not)
  :: Basically we use a trick to set the global SSD_DETECTED variable outside of the setlocal block by stacking it on the same line so it gets executed along with ENDLOCAL
  :: Big time thanks to reddit.com/user/Suddenly_Engineer and reddit.com/user/Aberu for helping with this.
  :detect_ssd
  pushd resources\stage_5_optimize\defrag
  set SSD_DETECTED=no
  
negative.code: 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)...
  pushd sophos_virus_remover
  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 /i %VERBOSE%==no	svrtcli.exe -yes
  	if /i %VERBOSE%==yes svrtcli.exe -yes -debug
  	type %ProgramData%\Sophos\Sophos Virus Removal Tool\Logs\SophosVirusRemovalTool.log >> "%LOGPATH%\%LOGFILE%"
  	)
  popd
  echo %CUR_DATE% %TIME%    Done.>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Done.
  
  :: JOB: VIPRE Rescue
  :: Haven't been able to figure out where Vipre saves it's log file to, so we can't grab it like with do with Sophos above
  echo %CUR_DATE% %TIME%    Launch job 'Vipre rescue scanner' (slow, be patient)...>> "%LOGPATH%\%LOGFILE%"
  echo %CUR_DATE% %TIME%    Launch job 'Vipre rescue scanner' (slow, be patient)...
  pushd vipre_rescue
  if /i %DRY_RUN%==no ( 
  	if /i %VERBOSE%==no VipreRescueScanner.exe /nolog
  	if /i %VERBOSE%==yes VipreRescueScanner.exe
  	)
  popd
  echo %CUR_DATE% %TIME%    Done.>> "%LOGPATH%\%LOGFILE%"
  