anchor.diff:      set ANACONDA_ENVS=%%~fi
   )
   
  -set CONDA_NEW_ENV=%~1
  +set CONDA_NEW_NAME=%~1
   
   if "%~2" == "" goto skiptoomanyargs
       echo ERROR: Too many arguments provided
       goto usage
   :skiptoomanyargs
   
  -if not "%CONDA_NEW_ENV%" == "" goto skipmissingarg
  +if not "%CONDA_NEW_NAME%" == "" goto skipmissingarg
   :usage
       echo Usage: activate envname
       echo.
  
positive.code:     set CONDACTIVATE_PATH=
  :skipdeactivate
  
  set CONDA_DEFAULT_ENV=%ANACONDA_ENVS%\%CONDA_NEW_ENV%
  set CONDA_NEW_ENV=
  echo Activating environment "%CONDA_DEFAULT_ENV%"...
  set PATH=%CONDA_DEFAULT_ENV%;%CONDA_DEFAULT_ENV%\Scripts;%PATH%
  set PROMPT=[%CONDA_DEFAULT_ENV%] $P$G
  
  REM Run any activate scripts
  if not exist "%CONDA_DEFAULT_ENV%\etc\conda\activate.d" goto noactivate
  
negative.code:     exit /b 1
  :skipmissingarg
  
  if exist "%ANACONDA_ENVS%\%CONDA_NEW_NAME%\conda-meta" goto usenamedenv
      echo No environment named "%CONDA_NEW_NAME%" exists in %ANACONDA_ENVS%
      set CONDA_NEW_NAME=
      exit /b 1
  :usenamedenv
      set CONDA_NEW_PATH=%ANACONDA_ENVS%\%CONDA_NEW_NAME%
  :skipmissingenv
  
  REM Deactivate a previous activation if it is live
  