diff options
Diffstat (limited to 'msvc-dev.bat')
-rw-r--r-- | msvc-dev.bat | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/msvc-dev.bat b/msvc-dev.bat index 671a56d..4dac172 100644 --- a/msvc-dev.bat +++ b/msvc-dev.bat @@ -4,6 +4,23 @@ setlocal cd %0\.. call msvc-env.bat -start "" "%VSHOME%\Common7\IDE\devenv.exe" %SOLUTION% +if exist "%VSHOME%\Common7\IDE\VCExpress.exe" ( + set IDE=%VSHOME%\Common7\IDE\VCExpress.exe +) else if exist "%VSHOME%\Common7\IDE\devenv.exe" ( + set IDE=%VSHOME%\Common7\IDE\devenv.exe +) else ( + echo "Cannot detect visual studio environment" + goto error +) +start "" "%IDE%" "%SOLUTION%" + +exit /b 0 +goto end + +:error +exit /b 1 +goto end + +:end endlocal |