anchor.diff:  :: TASK: Detect Solid State hard drives or Virtual Machine installation (determines if post-run defrag executes or not)
   pushd stage_6_optimize\defrag\
   
  -	:: Check for an updated drivedb.h
  -	if /i %DRY_RUN%==no update-smart-drivedb.exe /S
  -
  +	:: Check for an updated drivedb.h, but only if we're not in autorun OR doing a dry run
  +	if /i %DRY_RUN%==no ( if /i %AUTORUN%==no ( if /i %AUTORUN_IN_SAFE_MODE%==no ( update-smart-drivedb.exe /S ) ) )
  +	
   	:: Do the scan
   	for /f %%i in ('smartctl.exe --scan') do smartctl.exe %%i -a | %FINDSTR% /i "Solid SSD RAID SandForce" >NUL && set SKIP_DEFRAG=yes_ssd
   	for /f %%i in ('smartctl.exe --scan') do smartctl.exe %%i -a | %FINDSTR% /i "VMware VBOX XENSRC PVDISK" >NUL && set SKIP_DEFRAG=yes_vm
  
positive.code: 		echo    your already non-existent warranty!
  		echo.
  		pause
  		exit 1
  	)
  )
  
  
  :: CHECK: Make sure we're not running from the %TEMP% directory
  if "%~dp0"=="%TEMP%\tron\" (
  	color 0c
  	cls
  	echo.
  	echo  ERROR
  	echo.
  	echo  Tron is running from the Windows TEMP directory. Tron
  	echo  cannot run from the TEMP directory as it's one of the
  	echo  first places to get wiped when Tron starts. Run Tron
  	echo  directly from your Desktop. Example of correct path:
  	echo.
  	echo   "%USERPROFILE%\Desktop\tron\tron.bat"
  	echo.
  	echo  Tron will now quit.
  	echo.
  	pause
  	exit 1
  )
  
  
  :: CHECK: Make sure we're not running from %SystemDrive%\TEMP
  if "%~dp0"=="%SystemDrive%\temp\tron\" (
  	color 0c
  	cls
  	echo.
  	echo  ERROR
  	echo.
  	echo  Tron is running from %SystemDrive%\TEMP. Tron cannot
  	echo  run from this location as it's one of the first
  	echo  places to get wiped when Tron starts. Run Tron
  	echo  directly from your Desktop. Example of correct path:
  	echo.
  	echo   "%USERPROFILE%\Desktop\tron\tron.bat"
  	echo.
  	echo  Tron will now quit.
  	echo.
  	pause
  	exit 1
  )
  
  
  
  
negative.code: :: Purpose:       Tron's pre-run checks. Various things to check before continuing on.
  :: Requirements:  Called by tron.bat during script initialization
  :: Author:        vocatus on reddit.com/r/TronScript ( vocatus.gate at gmail ) // PGP key: 0x07d1490f82a211a2
  :: Version:       1.0.4 ! Fix syntax error in IF statement: Wrap paths in quotes to handle special characters and spaces
  ::                1.0.3 * Don't download drivedb.h definitions file if in either autorun mode
  ::                1.0.2 * Don't download drivedb.h definitions file if doing a dry run
  ::                1.0.1 + Add automatic update of drivedb.h prior to scanning hard drives. This ensures we're always on the latest definitions file
  ::                        Silently fails if no network connection
  ::                1.0.0 . Initial write, forked out of v9.9.0 of tron.bat
  
  
  :: Script version
  set PRERUN_CHECKS_SCRIPT_VERSION=1.0.4
  set PRERUN_CHECKS_SCRIPT_DATE=2017-12-11
  
  
  
  