anchor.diff:  copy .\bin_%PLATFORM%\_MMCorePy.pyd .\Install_%PLATFORM%\micro-manager
   copy .\MMCorePy_wrap\MMCoreWrapDemo.py .\Install_%PLATFORM%\micro-manager
   
  -
   echo building Java wrapper with command:
   echo start /wait vcexpress .\MMCoreJ_wrap\MMCoreJ_wrap.sln %buildswitch% "Release|%PLATFORM%"
   start /wait vcexpress .\MMCoreJ_wrap\MMCoreJ_wrap.sln %buildswitch% "Release|%PLATFORM%"
  -
  -
   
   echo Update the version number in MMVersion.java
   set mmversion=""
  
positive.code: rem Parameters are:
  rem doBuild.bat Win32|x64 FULL|INCREMENTAL RELEASE|NORELEASE UPLOAD|NOUPLOAD
  
  echo %date% - %time%
  
  
negative.code: popd
  
  REM -- try to install on build machine
  set DO_INSTALL=YES
  if "%PLATFORM%"=="x64" (
      if not "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
          set DO_INSTALL=NO
      )
  )
  if "%DO_INSTALL%"=="YES" (
      \Projects\micromanager\Install_%PLATFORM%\Output\%TARGETNAME%  /silent
      ECHO "Done installing"
  )
  
  if "%DO_UPLOAD%"=="UPLOAD" (
      pscp -i c:\projects\MM.ppk -batch /projects/micromanager/Install_%PLATFORM%/Output/%TARGETNAME% arthur@valelab.ucsf.edu:../MM/public_html/nightlyBuilds/1.4/Windows/%TARGETNAME%
  )
  
  pushd .\mmstudio\src\org\micromanager
  del MMVersion.java
  