0027543: Samples - flickering when view is resized in MFC samples
[occt.git] / samples / mfc / standard / run.bat
1 @echo off
2
3 Setlocal EnableDelayedExpansion
4
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%\%SampleName%.exe" goto err_exe
20
21 "%~dp0%BIN_DIR%\%SampleName%.exe"
22
23 goto eof
24
25 :err_bat
26 echo Launch selected sample as follows:
27 echo   %~n0.bat [^vc10^|^vc11^|^vc12^|^vc14^] [^win32^|^win64^] [^Release^|^Debug^] [^SampleName^]
28 echo or
29 echo   %~n0.bat [^SampleName^]
30 echo Run %~n0.bat -h to get this help
31 exit /B
32
33 :err_exe
34 echo Executable %~dp0%BIN_DIR%\%SampleName%.exe not found.
35 echo Probably you didn't compile the application.
36 exit /B
37
38 :eof