anchor.diff:  ::                        - HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
   ::                      + PREP:         Added Chrome to the list of browsers to kill before starting
   ::                      + PREP:         Added /T flag (terminate child processes) to all browser and Java kill lines
  +::                      * LOGGING:      Minor improvements
   ::                1.1   + Overhaul of functionality and logging
   ::                1.0     Initial write
   SETLOCAL
  
positive.code: echo %CUR_DATE% %TIME%   Purging Java installer cache...
  :: XP VERSION
  if %OS_VERSION%==XP (
      :: Get list of users, put it in a file, then use it to iterate through each users profile, deleting the AU folder
      dir "%SystemDrive%\Documents and Settings\" /B > %TEMP%\userlist.txt
      for /f "tokens=* delims= " %%a in (%TEMP%\userlist.txt) do (
  		if exist "%SystemDrive%\Documents and Settings\%%a\AppData\LocalLow\Sun\Java\AU" rmdir /S /Q "%SystemDrive%\Documents and Settings\%%a\AppData\LocalLow\Sun\Java\AU" 2>NUL
  	)
      for /D /R "%SystemDrive%\Documents and Settings\" %%x in (jre*) do if exist "%%x" rmdir /S /Q "%%x" 2>NUL
  ) else (
  	:: ALL OTHER VERSIONS OF WINDOWS
      :: Get list of users, put it in a file, then use it to iterate through each users profile, deleting the AU folder
      dir %SystemDrive%\Users /B > %TEMP%\userlist.txt
      for /f "tokens=* delims= " %%a in (%TEMP%\userlist.txt) do rmdir /S /Q "%SystemDrive%\Users\%%a\AppData\LocalLow\Sun\Java\AU" 2>NUL
      :: Get the other JRE directories
      for /D /R "%SystemDrive%\Users" %%x in (jre*) do rmdir /S /Q "%%x" 2>NUL
      )
  
  :: Miscellaneous stuff, sometimes left over by the installers
  
negative.code: ::                 - reddit.com/user/MrYiff          : bug fix related to OS_VERSION variable
  ::                 - reddit.com/user/cannibalkitteh  : additional registry & file cleaning locations
  ::                 - forums.oracle.com/people/mattmn : a lot of stuff from his Java removal script
  :: History:       1.6.6 ! MISC:         Convert references to tskill.exe and taskkill.exe to full paths instead of relying on System Path to be correct (thanks to reddit.com/user/placebonocebo)
  ::                1.6.5 / MISC:         Minor header change; Variables section now before Prep and Checks
  ::                1.6.4 * IMPROVEMENT:  Overhauled Date/Time conversion so we can handle all versions of Windows using any local date-time format
  ::                1.6.3 * BUG FIX:      Updated some outdated references to JRE v3-7 (updated to reflect addition of JRE8)
  ::                1.6.2 * IMPROVEMENT:  Added /salvagerepository and /resyncperf flags to WMIC winmgmt.exe repair section
  