@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%\..\TTSApp\x64" mkdir "%_dir%\..\TTSApp\x64" if not exist "%_dir%\..\TTSApp\x86" mkdir "%_dir%\..\TTSApp\x86" if not exist "%_dir%\..\TTSAppDebug\x64" mkdir "%_dir%\..\TTSAppDebug\x64" if not exist "%_dir%\..\TTSAppDebug\x86" mkdir "%_dir%\..\TTSAppDebug\x86" if exist "%_dir%\build\out\x64\Release-MicrosoftSpeechPlatform\TTSApp-MicrosoftSpeechPlatform.exe" ( echo copying "%_dir%\build\out\x64\Release-MicrosoftSpeechPlatform\TTSApp-MicrosoftSpeechPlatform.exe" to "%_opt%\bin\X64" copy /y "%_dir%\build\out\x64\Release-MicrosoftSpeechPlatform\TTSApp-MicrosoftSpeechPlatform.exe" "%_opt%\bin\X64" copy /y "%_dir%\build\out\x64\Release-MicrosoftSpeechPlatform\*.dll" "%_opt%\bin\X64" copy /y "%_dir%\build\out\x64\Release-MicrosoftSpeechPlatform\TTSApp-MicrosoftSpeechPlatform.exe" "%_dir%\..\TTSApp\x64" copy /y "%_dir%\build\out\x64\Release-MicrosoftSpeechPlatform\*.dll" "%_dir%\..\TTSApp\x64" ) if exist "%_dir%\build\out\x64\Release-SAPI\TTSApp-SAPI.exe" ( echo copying "%_dir%\build\out\x64\Release-SAPI\TTSApp-SAPI.exe" to "%_opt%\bin\X64" copy /y "%_dir%\build\out\x64\Release-SAPI\TTSApp-SAPI.exe" "%_opt%\bin\X64" copy /y "%_dir%\build\out\x64\Release-SAPI\*.dll" "%_opt%\bin\X64" copy /y "%_dir%\build\out\x64\Release-SAPI\TTSApp-SAPI.exe" "%_dir%\..\TTSApp\x64" copy /y "%_dir%\build\out\x64\Release-SAPI\*.dll" "%_dir%\..\TTSApp\x64" ) if exist "%_dir%\build\out\x86\Release-MicrosoftSpeechPlatform\TTSApp-MicrosoftSpeechPlatform.exe" ( echo copying "%_dir%\build\out\x86\Release-MicrosoftSpeechPlatform\TTSApp-MicrosoftSpeechPlatform.exe" to "%_opt%\bin\x86" copy /y "%_dir%\build\out\x86\Release-MicrosoftSpeechPlatform\TTSApp-MicrosoftSpeechPlatform.exe" "%_opt%\bin\X86" copy /y "%_dir%\build\out\x86\Release-MicrosoftSpeechPlatform\*.dll" "%_opt%\bin\X86" copy /y "%_dir%\build\out\x86\Release-MicrosoftSpeechPlatform\TTSApp-MicrosoftSpeechPlatform.exe" "%_dir%\..\TTSApp\x86" copy /y "%_dir%\build\out\x86\Release-MicrosoftSpeechPlatform\*.dll" "%_dir%\..\TTSApp\x86" ) if exist "%_dir%\build\out\x86\Release-SAPI\TTSApp-SAPI.exe" ( echo copying "%_dir%\build\out\x86\Release-SAPI\TTSApp-SAPI.exe" to "%_opt%\bin\x86" copy /y "%_dir%\build\out\x86\Release-SAPI\TTSApp-SAPI.exe" "%_opt%\bin\X86" copy /y "%_dir%\build\out\x86\Release-SAPI\*.dll" "%_opt%\bin\X86" copy /y "%_dir%\build\out\x86\Release-SAPI\TTSApp-SAPI.exe" "%_dir%\..\TTSApp\x86" copy /y "%_dir%\build\out\x86\Release-SAPI\*.dll" "%_dir%\..\TTSApp\x86" ) if exist "%_dir%\build\out\x64\Debug-MicrosoftSpeechPlatform\TTSApp-MicrosoftSpeechPlatform.exe" ( echo copying "%_dir%\build\out\x64\Debug-MicrosoftSpeechPlatform\TTSApp-MicrosoftSpeechPlatform.exe" to "%_dir%\..\TTSAppDebug\x64" copy /y "%_dir%\build\out\x64\Debug-MicrosoftSpeechPlatform\TTSApp-MicrosoftSpeechPlatform.exe" "%_dir%\..\TTSAppDebug\x64" copy /y "%_dir%\build\out\x64\Debug-MicrosoftSpeechPlatform\*.dll" "%_dir%\..\TTSAppDebug\x64" ) if exist "%_dir%\build\out\x64\Debug-SAPI\TTSApp-SAPI.exe" ( echo copying "%_dir%\build\out\x64\Debug-SAPI\TTSApp-SAPI.exe" to "%_dir%\..\TTSAppDebug\x64" copy /y "%_dir%\build\out\x64\Debug-SAPI\TTSApp-SAPI.exe" "%_dir%\..\TTSAppDebug\x64" copy /y "%_dir%\build\out\x64\Debug-SAPI\*.dll" "%_dir%\..\TTSAppDebug\x64" ) if exist "%_dir%\build\out\x86\Debug-MicrosoftSpeechPlatform\TTSApp-MicrosoftSpeechPlatform.exe" ( echo copying "%_dir%\build\out\x86\Debug-MicrosoftSpeechPlatform\TTSApp-MicrosoftSpeechPlatform.exe" to "%_dir%\..\TTSAppDebug\x86" copy /y "%_dir%\build\out\x86\Debug-MicrosoftSpeechPlatform\TTSApp-MicrosoftSpeechPlatform.exe" "%_dir%\..\TTSAppDebug\x86" copy /y "%_dir%\build\out\x86\Debug-MicrosoftSpeechPlatform\*.dll" "%_dir%\..\TTSAppDebug\x86" ) if exist "%_dir%\build\out\x86\Debug-SAPI\TTSApp-SAPI.exe" ( echo copying "%_dir%\build\out\x86\Debug-SAPI\TTSApp-SAPI.exe" to "%_dir%\..\TTSAppDebug\x86" copy /y "%_dir%\build\out\x86\Debug-SAPI\TTSApp-SAPI.exe" "%_dir%\..\TTSAppDebug\x86" copy /y "%_dir%\build\out\x86\Debug-SAPI\*.dll" "%_dir%\..\TTSAppDebug\x86" ) endlocal