06562706 |
1 | @echo off |
2 | |
4b3541c6 |
3 | Setlocal EnableDelayedExpansion |
4 | |
06562706 |
5 | rem Setup environment |
a44902ef |
6 | call "%~dp0env.bat" %1 %2 %3 |
aea58b16 |
7 | |
06562706 |
8 | rem Define path to project file |
da67ffb7 |
9 | set "PRJFILE=%~dp0All-%VCFMT%.sln" |
06562706 |
10 | |
11 | rem Launch Visual Studio - either professional (devenv) or Express, as available |
12 | if exist "%DevEnvDir%\devenv.exe" ( |
48691eaa |
13 | start "" "%DevEnvDir%\devenv.exe" "%PRJFILE%" |
06562706 |
14 | ) else if exist "%DevEnvDir%\%VisualStudioExpressName%.exe" ( |
48691eaa |
15 | start "" "%DevEnvDir%\%VisualStudioExpressName%.exe" "%PRJFILE%" |
aea58b16 |
16 | ) else ( |
da67ffb7 |
17 | echo Error: Could not find MS Visual Studio ^(%VCFMT%^) |
693c4bbe |
18 | echo Check relevant environment variable ^(e.g. VS100COMNTOOLS for vc10^) |
06562706 |
19 | ) |