0028769: Unification of msvc.bat files.
[occt.git] / samples / qt / IESample / msvc.bat
1 @echo off
2
3 Setlocal EnableDelayedExpansion
4
5 rem Setup environment
6 call "%~dp0env.bat" %1 %2 %3
7
8 rem Define path to project file
9 set "PRJFILE=%~dp0IESample.sln"
10
11 rem Launch Visual Studio - either professional (devenv) or Express, as available
12 if exist "%DevEnvDir%\devenv.exe"  (
13   start "%DevEnvDir%\devenv.exe" "%PRJFILE%"
14 ) else if exist "%DevEnvDir%\%VisualStudioExpressName%.exe"  (
15   start "%DevEnvDir%\%VisualStudioExpressName%.exe" "%PRJFILE%"
16 ) else (
17   echo Error: Could not find MS Visual Studio ^(%VCVER%^)
18   echo Check relevant environment variable ^(e.g. VS100COMNTOOLS for vc10^)
19 )