@echo off

@REM This script was based on the original conda activate.bat

@setlocal

@set "CONDA_PREFIX=__CONDA_PREFIX__"
@set "CONDA_DEFAULT_ENV=__CONDA_DEFAULT_ENV__"
@set "CONDA_ENV_PATH=%CONDA_PREFIX%"
@set "PATH=%CONDA_PREFIX%;%CONDA_PREFIX%\Library\mingw-w64\bin;%CONDA_PREFIX%\Library\usr\bin;%CONDA_PREFIX%\Library\bin;%CONDA_PREFIX%\Scripts;%PATH%"

@REM Run any activate scripts
@if exist "%CONDA_PREFIX%\etc\conda\activate.d" (
    @pushd "%CONDA_PREFIX%\etc\conda\activate.d"
    @for %%g in (*.bat) do @call "%%g"
    @popd
)

@REM Execute the given command
__COMMAND__%*

@endlocal

@echo off

@REM This script was based on the original conda activate.bat

@setlocal

@set "CONDA_PREFIX=__CONDA_PREFIX__"
@set "CONDA_DEFAULT_ENV=__CONDA_DEFAULT_ENV__"
@set "CONDA_ENV_PATH=%CONDA_PREFIX%"
@set "PATH=%CONDA_PREFIX%;%CONDA_PREFIX%\Library\mingw-w64\bin;%CONDA_PREFIX%\Library\usr\bin;%CONDA_PREFIX%\Library\bin;%CONDA_PREFIX%\Scripts;%CONDA_PREFIX%\bin;%PATH%"

@REM Run any activate scripts
@if exist "%CONDA_PREFIX%\etc\conda\activate.d" (
    @pushd "%CONDA_PREFIX%\etc\conda\activate.d"
    @for %%g in (*.bat) do @call "%%g"
    @popd
)

@REM Execute the given command
__COMMAND__%*

@endlocal

Add %CONDA_PREFIX%/bin to PATH on Windows
Add %CONDA_PREFIX%/bin to PATH on Windows

This was introduced on conda 4.5
