f4264b5a |
1 | @echo off |
2 | |
4b3541c6 |
3 | Setlocal EnableDelayedExpansion |
4 | |
f4264b5a |
5 | if "%1" == "-h" ( |
6 | goto err_bat |
7 | ) |
8 | |
9 | if not ["%4"] == [""] ( |
10 | set "SampleName=%4" |
11 | call "%~dp0env.bat" %1 %2 %3 |
12 | ) else if not ["%1"] == [""] ( |
13 | set "SampleName=%1" |
14 | call "%~dp0env.bat" |
15 | ) else ( |
16 | goto err_bat |
17 | ) |
18 | |
19 | if not exist "%~dp0%BIN_DIR%\IE_%SampleName%.exe" goto err_exe |
20 | |
21 | "%~dp0%BIN_DIR%\IE_%SampleName%.exe" |
22 | |
23 | goto eof |
24 | |
25 | :err_bat |
26 | echo Possible names of samples: WinForms, WPF_D3D, WPF_WinForms |
27 | echo Launch selected sample as follows: |
693c4bbe |
28 | echo %~n0.bat [^vc10^|^vc11^|^vc12^|^vc14^] [^win32^|^win64^] [^Release^|^Debug^] [^SampleName^] |
f4264b5a |
29 | echo or |
30 | echo %~n0.bat [^SampleName^] |
31 | echo Run %~n0.bat -h to get this help |
32 | exit /B |
33 | |
34 | :err_exe |
35 | echo Executable %~dp0%BIN_DIR%\IE_%SampleName%.exe not found. |
36 | echo Check that OCCT and sample are built with the selected configuration: |
37 | echo compiler=%VCVER% platform=win%ARCH% %3 |
38 | exit /B |
39 | |
40 | :eof |