anchor.diff:  cls
   color 0f
   set SCRIPT_VERSION=4.7.0
  -set SCRIPT_DATE=2015-02-xx
  +set SCRIPT_DATE=2015-01-28
   title TRON v%SCRIPT_VERSION% (%SCRIPT_DATE%)
   
   :: Get the date into ISO 8601 standard date format (yyyy-mm-dd) so we can use it 
  
positive.code: if /i %DRY_RUN%==yes goto skip_update_check
  if /i %AUTORUN%==yes goto skip_update_check
  
  :: Use wget to fetch md5sums.txt from the repo and parse through it. Extract latest version number and release date from last line of the file (which is always the latest release)
  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 /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 /i %ERRORLEVEL%==0 (
  	set REPO_SCRIPT_VERSION=%WORKING:~1,6%
  	set REPO_SCRIPT_DATE=%WORKING2:~1,10%
  	)
  
  :: clean up and reset the window title since wget clobbers it
  if exist "%TEMP%\md5sum*" del "%TEMP%\md5sum*"
  title TRON v%SCRIPT_VERSION% (%SCRIPT_DATE%)
  
  :: Notify if an update was found
  
negative.code: if /i %SELF_DESTRUCT%==yes (
  	%SystemDrive%
  	cd \
  	rmdir /s /q "%CWD%"
  	exit
  	)
  
  :end_and_skip_shutdown
  