anchor.diff:  IF NOT EXIST "%~dp0VCbind.txt" GOTO :FAIL1
   IF NOT EXIST "%~dp0VCbind.bat" GOTO :FAIL1
   
  -rem **** CONTINUE REWORKING FROM HERE ****
  -rem CONFIRM WHETHER SETTINGS HAVE ALREADY BEEN MADE
  -rem VERIFY THAT SETTINGS ARE NOT IN CONFLICT
  +rem DETERMINE PARAMETERS
  +rem    Three environment variables are set whenever there is a successful
  +rem    VCbind.bat conclusion:
  +rem           VCbound is the environment (e.g., 140) that was used
  +rem       VCmodeBound is the mode (e.g., x86) of compilation bound
  +rem        VCboundVer is the version (e.g., 14.0) of Visual Studio.
  +rem
  +rem    other VC* environment variables are used transiently and will
  +rem    be altered without checking whether they are already defined.
  +  
  +rem    XXX: For now, assume no VC* parameters are requested on the
  +rem         VCbind.bat command-line.
  +
  +SET VCasked=%VCbound%
  +SET VCmodeAsked=x86
  +ECHO: [VCbind] Requesting binding for %VCmodeAsked% compilation.
  +
  +rem CHECK WHETHER VCBIND SETTINGS HAVE ALREADY BEEN MADE
  +IF DEFINED VCbound GOTO :ALREADY
  +
  +rem CHECK WHETHER THERE HAS BEEN SOME OTHER BINDING ALREADY 
  +IF DEFINED VisualStudioVersion GOTO :FAIL4
  +
  +rem FIND AVAILABLE 
   rem 
  -SET VisualStudioVersion=
  -rem Only set on a successful operation for any request
  +rem    XXX: Just use known version 11.0 for initial testing.
  +set VCasked=110
   CALL "%VS110COMNTOOLS%..\..\VC\vcvarsall.bat" %1
   rem Only call if there has never been a successful operation
  -IF "%VisualStudioVersion%" == "" GOTO :FAIL3
  -SET VCbindVer=%VisualStudioVersion%
  -SET VCbindOpt=x86
  -IF NOT "%1" == "" SET VCbindOpt=%1
  -rem An appropriate message goes here about setting, etc.
  +IF "%VisualStudioVersion%" == "" GOTO :FAIL5
  +
  +ECHO:
  +ECHO: [VCbind] Environment set for VC++ %VisualStudioVersion% %VCmodeAsked%.
  +GOTO :SUCCESS
  +
  +:ALREADY
  +rem CHECK IF THERE IS A CONFLICT WITH THE PREVIOUS BINDING
  +IF NOT "%VCasked%" == "%VCbound%" GOTO :FAIL2
  +IF NOT "%VCmodeAsked%" == "%VCmodeBound%" GOTO :FAIL2
  +
  +rem CHECK IF ANOTHER CONFLICT HAS ARISEN
  +IF NOT "%VCboundVer%" == "%VisualStudioVersion%" GOTO :FAIL3
  +
  +rem TRUST PREVIOUS SETTINGS TO BE REUSABLE
  +ECHO:
  +ECHO: [VCbind] Environment set for VC++ %VCboundVer% %VCmodeBound% unchanged.        
  +GOTO :SUCCESS
  +
  +:SUCCESS
  +rem    XXX: Assuming no need to fiddle ERRORLEVEL at this point.
  +ECHO:
  +ECHO:
  +SET VCbound=%VCasked%
  +SET VCmodeBound=%VCmodeAsked%
  +SET VCboundVer=%VisualStudioVersion%
  +rem    correct whether first or subsequent success
  +PAUSE
   EXIT /B 0
  +
  +:FAIL5
  +ECHO:
  +ECHO: [VCbind] *** SETUP FOR TOOLS %VCasked% %VCmodeAsked% FAILED ***
  +ECHO:          Check preceding messages for failure information.
  +ECHO:
  +ECHO:          THE CURRENT STATE IS UNPREDICTABLE
  +ECHO:          It is likely that %VCmodeAsked% is not supported by
  +ECHO:          the installed VS %VCasked% Common Tools.  There may
  +ECHO:          be other problems.
  +GOTO :BAIL
  +
  +:FAIL4
  +ECHO:
  +ECHO: [VCbind] *** VC ENVIRONMENT ALREADY SET BY OTHER MEANS ***
  +ECHO:          The environment is already set for compiling with the
  +ECHO:          VC++ compiler of Visual Studio version %VisualStudioVerison%.
  +GOTO :NOMIXING
  +
  +:FAIL3
  +ECHO:
  +ECHO: [VCbind] *** VC ENVIRONMENT HAS BEEN ALTERED ***
  +ECHO:          There has been an alteration of VC binding to version %VisualStudioVersion%
  +ECHO:          from the version %VCboundVer% set by VCbind.  Continuing
  +ECHO:          this command-shell session may lead to unexpected results.
  +GOTO :NOMIXING
  +
  +:FAIL2
  +ECHO:
  +ECHO: [VCbind] **** CONFLICT WITH A PRIOR VCBIND ****
  +ECHO:          The current request conflicts with settings already
  +ECHO:          in effect for %VCmodeBound% compilations using the
  +ECHO:          VC++ compiler of Visual Studio version %VisualStudioVersion%.
  +rem               TODO: confirm version is always set when vcvarsall works.
  +GOTO :NOMIXING
  +
  +:NOMIXING
  +ECHO:
  +ECHO:          NO CHANGES HAVE BEEN MADE
  +ECHO:          Do not attempt to change or mix VCbind settings in a command-
  +ECHO:          shell session in which VCbind or other settings have already
  +ECHO:          been made.
  +GOTO :BAIL
   
   :FAIL1
   ECHO:
  
positive.code: rem -----1---------2---------3---------4---------5---------6---------7-------*
  
  
  rem 0.0.5 2016-11-08-10:54 Rearrange comments and move TODOs to the
  rem       devBind.txt working file.  Check for acceptable CMDEXTVERSION 
  rem       and location (%dp0) where this script is located.
  
negative.code: ECHO:          before performing VCbind.bat.
  GOTO :BAIL
  
  :BAIL
  IF NOT ERRORLEVEL 2 SET ERRORLEVEL=2
  COLOR 74
  rem   Soft White background and Red text
  ECHO:
  ECHO:
  PAUSE
  EXIT /B %ERRORLEVEL%
  
  rem -----1---------2---------3---------4---------5---------6---------7-------*
  
  