anchor.diff:  if /i %AUTO_SHUTDOWN%==yes call functions\log.bat "%CUR_DATE% %TIME% ! Auto-shutdown selected. Shutting down in %AUTO_REBOOT_DELAY% seconds."
   
   
  -:: Pretend to send the email report. We don't actually send the report since we need the log trailer which is created below,
  -:: so we just pretend to send it then actually send it after the log trailer has been created
  -if /i %EMAIL_REPORT%==yes (
  -	call functions\log.bat "%CUR_DATE% %TIME%   Email report requested. Sending report now..."
  -	ping localhost -n 5 >NUL
  -	call functions\log.bat "%CUR_DATE% %TIME%   Done."
  -)
  +:: Notify that we're going to email the log file
  +if /i %EMAIL_REPORT%==yes call functions\log.bat "%CUR_DATE% %TIME%   Email report requested. Will email logs in a few moments."
  +
  +
  +:: Upload logs if the switch was used
  +if /i %UPLOAD_DEBUG_LOGS%==yes call functions\log.bat "%CUR_DATE% %TIME%   Debug log upload enabled (thank-you!). Will upload logs in a few moments."
   
   
   :: Check if self-destruct was set
  
positive.code: 
  
  
  :::::::::::::::
  :: FUNCTIONS ::
  :::::::::::::::
  
  :: Get the date into ISO 8601 standard format (yyyy-mm-dd) so we can use it
  :set_cur_date
  for /f %%a in ('WMIC OS GET LocalDateTime ^| find "."') DO set DTS=%%a
  set CUR_DATE=%DTS:~0,4%-%DTS:~4,2%-%DTS:~6,2%
  goto :eof
  
  
  :: Parse CLI arguments and flip the appropriate variables
  :parse_cmdline_args
  
negative.code: :: PREP AND CHECKS ::
  :::::::::::::::::::::
  color 0f
  set SCRIPT_VERSION=9.6.0
  set SCRIPT_DATE=2016-10-02
  title Tron v%SCRIPT_VERSION% (%SCRIPT_DATE%)
  
  :: Initialize script-internal variables. Most of these get clobbered later so don't change them here
  