anchor.diff:  @echo off
   
  -rem This is necessary to access the TOTAL_MEMORY and ADDRESS_WIDTH variables inside the IF block
  +:: *****************************************
  +:: Optional values - Please modify as needed
  +:: *****************************************
  +
  +:: Total amount of memory in MB available to MZmine 2.
  +:: 0 = automatically determined
  +:: Default: AUTO
  +set HEAP_SIZE=AUTO
  +
  +:: Location where temporary files will be stored.
  +:: Default: %TEMP%
  +set TMP_FILE_DIRECTORY=%TEMP%
  +
  +:: Allow MZmine to send anonymous statistics on the module usage? 
  +:: 1 = activated, 0 = deactivated
  +:: Default: 1
  +set MZMINE_STATISTICS=1
  +
  +:: It is usually not necessary to modify the JAVA_COMMAND parameter, but if you like to run
  +:: a specific Java Virtual Machine, you may set the path to the java command of that JVM
  +set JAVA_COMMAND=java
  +
  +:: ********************************************
  +:: You don't need to modify anything below here
  +:: ********************************************
  +
  +
  +
  +:: ***********************************
  +:: Auto detection of accessible memory
  +:: ***********************************
  +
  +:: This is necessary to access the TOTAL_MEMORY and ADDRESS_WIDTH variables inside the IF block
   setlocal enabledelayedexpansion
   
  -rem Obtain the physical memory size and check if we are running on a 32-bit system.
  +:: Obtain the physical memory size and check if we are running on a 32-bit system.
   if exist C:\Windows\System32\wbem\wmic.exe (
     echo Checking physical memory size...
  -  rem Get physical memory size from OS
  +  :: Get physical memory size from OS
     for /f "skip=1" %%p in ('C:\Windows\System32\wbem\wmic.exe os get totalvisiblememorysize') do if not defined TOTAL_MEMORY set /a TOTAL_MEMORY=%%p / 1024
     for /f "skip=1" %%x in ('C:\Windows\System32\wbem\wmic.exe cpu get addresswidth') do if not defined ADDRESS_WIDTH set ADDRESS_WIDTH=%%x
     echo Found !TOTAL_MEMORY! MB memory, !ADDRESS_WIDTH!-bit system
  
positive.code:   del !file.%%N!
    taskkill /PID !pid! /F 2>nul
  )
  
negative.code: set TMP_FILE_DIRECTORY=%TMP_FILE_DIRECTORY%\\%MZMINE_UNID%
  mkdir %TMP_FILE_DIRECTORY%
  
  
  
  :: **********************
  :: Java specific commands
  :: **********************
  
  set JAVA_PARAMETERS=-showversion -classpath lib\* -Djava.ext.dirs= -XX:+UseParallelGC -Djava.io.tmpdir=%TMP_FILE_DIRECTORY% -Xms%HEAP_SIZE%m -Xmx%HEAP_SIZE%m
  set MAIN_CLASS=net.sf.mzmine.main.MZmineCore
  
  :: Starts the Java Virtual Machine
  %JAVA_COMMAND% %JAVA_PARAMETERS% %MAIN_CLASS% %*
  
  :: If there was an error, give the user a chance to see it
  IF ERRORLEVEL 1 pause
  
  
  
  :: *****************
  :: Clean-up commands
  :: *****************
  
  setlocal disableDelayedExpansion
  
  :: Kill/clean-up remaining Rserve instances
  :: Load the file path "array"
  for /f "tokens=1* delims=:" %%A in ('dir /b %TMP_FILE_DIRECTORY%\rs_pid_*.pid^|findstr /n "^"') do (
    set "file.%%A=%TMP_FILE_DIRECTORY%\%%B"
  