anchor.diff:  POPD
   GOTO :EOF
   
  -:SubRevNumber
  -SET buildnum=%*
  +:SubVerMajor
  +SET VerMajor=%*
  +GOTO :EOF
  +:SubVerMinor
  +SET VerMinor=%*
  +GOTO :EOF
  +:SubVerBuild
  +SET VerBuild=%*
  +GOTO :EOF
  +:SubVerRev
  +SET VerRev=%*
   GOTO :EOF
   
   :ErrorDetected
  
positive.code: COPY /B /V /Y res\cabinet\notepad2.redir.ini binaries\x86-32\notepad2.redir.ini
  COPY /B /V /Y ..\Notepad2.txt binaries\x86-32\notepad2.txt
  COPY /B /V /Y ..\Readme-mod.txt binaries\x86-32\readme.txt
  rem Set the revision for the DisplayVersion
  CALL tools\BatchSubstitute.bat "0.0.0.0" %NOTEPAD_VERSION%.%buildnum% binaries\x86-32\notepad2.inf >notepad2.inf.temp
  COPY /Y binaries\x86-32\notepad2.inf notepad2.inf.orig >NUL
  MOVE /Y notepad2.inf.temp binaries\x86-32\notepad2.inf >NUL
  tools\cabutcd.exe binaries\x86-32 res\cabinet.x86-32.cab
  
negative.code: CALL build.cmd
  CALL build_x64.cmd
  
  rem Get the version
  FOR /f "tokens=3,4 delims= " %%K IN (
    'FINDSTR /I /L /C:"define VERSION_MAJOR" "..\src\Version.h"') DO (
    SET "VerMajor=%%K"&Call :SubVerMajor %%VerMajor:*Z=%%)
  FOR /f "tokens=3,4 delims= " %%L IN (
    'FINDSTR /I /L /C:"define VERSION_MINOR" "..\src\Version.h"') DO (
    SET "VerMinor=%%L"&Call :SubVerMinor %%VerMinor:*Z=%%)
  FOR /f "tokens=3,4 delims= " %%M IN (
    'FINDSTR /I /L /C:"define VERSION_BUILD" "..\src\Version.h"') DO (
    SET "VerBuild=%%M"&Call :SubVerBuild %%VerBuild:*Z=%%)
  FOR /f "tokens=3,4 delims= " %%N IN (
    'FINDSTR /I /L /C:"define VERSION_REV" "..\src\Version_rev.h"') DO (
    SET "VerRev=%%N"&Call :SubVerRev %%VerRev:*Z=%%)
  
  SET NOTEPAD_VERSION=%VerMajor%.%VerMinor%.%VerBuild%
  
  
  CALL :SubZipFiles Release x86-32
  CALL :SubZipFiles Release_x64 x86-64
  