anchor.diff:  )
   
   
  -:: PREP: If we're in Safe Mode, set the system to permanently boot into Safe Mode in case we get interrupted by a reboot
  +:: INTERNAL PREP: If we're in Safe Mode, set the system to permanently boot into Safe Mode in case we get interrupted by a reboot
   :: We undo this at the end of the script. Only works on Vista and up
   if /i "%SAFE_MODE%"=="yes" (
   	if %WIN_VER_NUM% geq 6.0 (
  
positive.code: )
  
  
  :: PREP: Detect Solid State hard drives or Virtual Machine installation (determines if post-run defrag executes or not)
  :: Basically we use a trick to set the global SKIP_DEFRAG variable outside of the setlocal block by stacking it on the same line so it gets executed along with ENDLOCAL
  pushd stage_6_optimize\defrag\
  	for /f %%i in ('smartctl.exe --scan') do smartctl.exe %%i -a | findstr /i "Solid SSD RAID SandForce" >NUL && set SKIP_DEFRAG=yes_ssd
  
negative.code: )
  
  
  :: INTERNAL PREP: Get in the correct drive (~d0). This is sometimes needed when running from a thumb drive
  %~d0 2>NUL
  :: INTERNAL PREP: Get in the correct path (~dp0). This is useful if we start from a network share, it converts CWD to a drive letter
  pushd %~dp0 2>NUL
  :: INTERNAL PREP: Get in the resources sub-directory. We stay here for the rest of the script
  pushd resources
  
  
  :: INTERNAL PREP: Parse command-line arguments (functions are at bottom of script)
  call :parse_cmdline_args %*
  
  
  :: INTERNAL PREP: Execute help if requested
  if /i %HELP%==yes (
  	cls
  	echo.
  