@echo off

IF "%GO_SDK_4%" == "" GOTO NOPATH
   :YESPATH
   @ECHO The GO_SDK environment variable was detected.
   xcopy "%GO_SDK_4%\bin\win32\GoSdkd.dll" "%CD%\bin\win32\GoSdkd.dll*"
   xcopy "%GO_SDK_4%\bin\win32\GoSdk.dll" "%CD%\bin\win32\GoSdk.dll*"
   xcopy "%GO_SDK_4%\bin\win32\kApid.dll" "%CD%\bin\win32\kApid.dll*"
   xcopy "%GO_SDK_4%\bin\win32\kApi.dll" "%CD%\bin\win32\kApi.dll*"
   xcopy "%GO_SDK_4%\bin\win64\GoSdkd.dll" "%CD%\bin\win64\GoSdkd.dll*"
   xcopy "%GO_SDK_4%\bin\win64\GoSdk.dll" "%CD%\bin\win64\GoSdk.dll*"
   xcopy "%GO_SDK_4%\bin\win64\kApid.dll" "%CD%\bin\win64\kApid.dll*"
   xcopy "%GO_SDK_4%\bin\win64\kApi.dll" "%CD%\bin\win64\kApi.dll*"
   GOTO END
   :NOPATH
   @ECHO The GO_SDK_4 environment variable was NOT detected.Please set the ENV Variable GO_SDK_4 to point to the Go SDK Directory.
   GOTO END
   :END

pause