@echo off setlocal set _dir=%~dp0 set _dir=%_dir:~0,-1% set _opt=%OPT% if "%_opt%" == "" ( set _opt=c:\opt ) if not exist "%_opt%\." ( set _opt=d:\opt ) if not exist "%_opt%\." ( set _opt=e:\opt ) if not exist "%_opt%\." ( set _opt=g:\opt ) if not exist "%_opt%\." ( goto :EOF ) if not exist "%_dir%\..\MMNotificationClientTest\x64" mkdir "%_dir%\..\MMNotificationClientTest\x64" if not exist "%_dir%\..\MMNotificationClientTest\x86" mkdir "%_dir%\..\MMNotificationClientTest\x86" if not exist "%_dir%\..\MMNotificationClientTestDebug\x64" mkdir "%_dir%\..\MMNotificationClientTestDebug\x64" if not exist "%_dir%\..\MMNotificationClientTestDebug\x86" mkdir "%_dir%\..\MMNotificationClientTestDebug\x86" if exist "%_dir%\build\out\x64\Release\MMNotificationClientTest.exe" ( echo copying "%_dir%\build\out\x64\Release\MMNotificationClientTest.exe" to "%_opt%\bin\X64" copy /y "%_dir%\build\out\x64\Release\MMNotificationClientTest.exe" "%_opt%\bin\X64" copy /y "%_dir%\build\out\x64\Release\MMNotificationClientTest.exe" "%_dir%\..\MMNotificationClientTest\x64" ) if exist "%_dir%\build\out\x86\Release\MMNotificationClientTest.exe" ( echo copying "%_dir%\build\out\x86\Release\MMNotificationClientTest.exe" to "%_opt%\bin\x86" copy /y "%_dir%\build\out\x86\Release\MMNotificationClientTest.exe" "%_opt%\bin\X86" copy /y "%_dir%\build\out\x86\Release\MMNotificationClientTest.exe" "%_dir%\..\MMNotificationClientTest\x86" ) if exist "%_dir%\build\out\x64\Debug\MMNotificationClientTest.exe" ( echo copying "%_dir%\build\out\x64\Debug\MMNotificationClientTest.exe" to "%_dir%\..\MMNotificationClientTestDebug\x64" copy /y "%_dir%\build\out\x64\Debug\MMNotificationClientTest.exe" "%_dir%\..\MMNotificationClientTestDebug\x64" ) if exist "%_dir%\build\out\x86\Debug\MMNotificationClientTest.exe" ( echo copying "%_dir%\build\out\x86\Debug\MMNotificationClientTest.exe" to "%_dir%\..\MMNotificationClientTestDebug\x86" copy /y "%_dir%\build\out\x86\Debug\MMNotificationClientTest.exe" "%_dir%\..\MMNotificationClientTestDebug\x86" ) endlocal