Update of environment files for compilation in batch mode.
[occt.git] / samples / mfc / standard / run.bat
1 @echo off
2
3 if ["%4"] == [""] (
4   echo Launch selected sample as follows: 
5   echo Run.bat [^vc8^|^vc9^|^vc10^|^vc11^] [^win32^|^win64^] [^Release^|^Debug^] [^SampleName^]
6   echo Use option -d to run Debug mode
7   exit /B
8 )
9
10 call "%~dp0env.bat" %1 %2 %3
11
12 if not exist "%~dp0%BIN_DIR%\%4.exe" goto err_exe
13
14 "%~dp0%BIN_DIR%\%4.exe"
15
16 goto eof
17
18 :err_exe
19 echo Executable %~dp0%BIN_DIR%\%4.exe not found.
20 echo Probably you didn't compile the application.
21 exit /B
22
23 :eof