anchor.diff:  :: 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.7 * Improve disk free space detection to work on non-English OS's. Thanks to r/TchangLaTempete
  +:: Version:       1.0.8 + Add some display messages explainining what we're doing (detecting disks, updating drivedb, etc)
  +::                      - Suppress "The operation completed successfully" message on bcdedit command
  +::                1.0.7 * Improve disk free space detection to work on non-English installations. Thanks to r/TchangLaTempete
   ::                1.0.6 / Import SMART problem code checks from tron.bat
   ::                1.0.5 * Don't check for drivedb.h updates if NETWORK_AVAILABLE is set to no
   ::                1.0.4 ! Fix syntax error in IF statement: Wrap paths in quotes to handle special characters and spaces
  
positive.code: 	:: b. not in autorun
  	:: c. not in autorun (safe mode)
  	:: d. network IS available
  	if /i %DRY_RUN%==no ( if /i %AUTORUN%==no ( if /i %AUTORUN_IN_SAFE_MODE%==no ( if /i %NETWORK_AVAILABLE%==yes ( 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
  	for /f %%i in ('smartctl.exe --scan') do smartctl.exe %%i -a | %FIND% /i "Read Device Identity Failed" >NUL && set SKIP_DEFRAG=yes_disk_smart_read_error&&set WARNINGS_DETECTED=yes_disk_smart_read_error
  
negative.code: 
  
  :: TASK: Re-enable the standard "F8" key functionality for choosing bootup options (Microsoft started disabling it by default in Windows 8 and up)
  if %WIN_VER_NUM% geq 6.3 bcdedit /set {default} bootmenupolicy legacy >NUL
  