@echo off
rem Licensed Materials - Property of IBM
rem IBM Cognos Products: camaaa
rem (C) Copyright IBM Corp. 2015
rem US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

rem This batch file assumes it is being executed from <root>/bin64

set TARGET_LIB=CAM_AAA_AuthSAP.dll
set RFC_LIB=CAM_AAA_AuthSAP_rfc.dll
set RFCNW_LIB=CAM_AAA_AuthSAP_rfcnw.dll

if %1.==. goto help

if %1==rfc goto copyRFC

if %1==rfcnw goto copyRFCNW


goto help


:copyRFC
@echo on
copy /Y .\%RFC_LIB% .\%TARGET_LIB%
@echo off
goto end

:copyRFCNW
@echo on
copy /Y .\%RFCNW_LIB% .\%TARGET_LIB%
@echo off
goto end

:help
  echo setSAPMod rfc	 --Set rfc version of SAP provider as default
  echo setSAPMod rfcnw	 --Set rfcnw version of SAP provider as default
:end