0023861: Draw can not start if OCCT is installed in a path containing spaces
[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 "%~dp0..\..\..\env.bat" %1 %2 %3
11 call "%~dp0env.bat"
12
13 if not exist "%~dp0%BIN_DIR%\%4.exe" goto err_exe
14
15 "%~dp0%BIN_DIR%\%4.exe"
16
17 goto eof
18
19 :err_exe
20 echo Executable %~dp0%BIN_DIR%\%4.exe not found.
21 echo Probably you didn't compile the application.
22 exit /B
23
24 :eof