0027253: Boolean cut produces invalid result shape
[occt.git] / samples / mfc / standard / run.bat
CommitLineData
aea58b16 1@echo off
2
f4264b5a 3if "%1" == "-h" (
4 goto err_bat
cc5ac00d 5)
6
f4264b5a 7if not ["%4"] == [""] (
8 set "SampleName=%4"
9 call "%~dp0env.bat" %1 %2 %3
10) else if not ["%1"] == [""] (
11 set "SampleName=%1"
12 call "%~dp0env.bat"
13) else (
14 goto err_bat
15)
cc5ac00d 16
f4264b5a 17if not exist "%~dp0%BIN_DIR%\%SampleName%.exe" goto err_exe
cc5ac00d 18
f4264b5a 19"%~dp0%BIN_DIR%\%SampleName%.exe"
cc5ac00d 20
aea58b16 21goto eof
cc5ac00d 22
f4264b5a 23:err_bat
24echo Launch selected sample as follows:
25echo %~n0.bat [^vc8^|^vc9^|^vc10^|^vc11^|vc12] [^win32^|^win64^] [^Release^|^Debug^] [^SampleName^]
26echo or
27echo %~n0.bat [^SampleName^]
28echo Run %~n0.bat -h to get this help
29exit /B
30
aea58b16 31:err_exe
f4264b5a 32echo Executable %~dp0%BIN_DIR%\%SampleName%.exe not found.
aea58b16 33echo Probably you didn't compile the application.
34exit /B
cc5ac00d 35
aea58b16 36:eof