msvc-dev.bat 400 B

1234567891011121314151617181920212223242526
  1. @echo off
  2. setlocal
  3. cd /d %0\..
  4. call msvc-env.bat
  5. if exist "%VSHOME%\Common7\IDE\VCExpress.exe" (
  6. set IDE=%VSHOME%\Common7\IDE\VCExpress.exe
  7. ) else if exist "%VSHOME%\Common7\IDE\devenv.exe" (
  8. set IDE=%VSHOME%\Common7\IDE\devenv.exe
  9. ) else (
  10. echo "Cannot detect visual studio environment"
  11. goto error
  12. )
  13. start "" "%IDE%" "%SOLUTION%"
  14. exit /b 0
  15. goto end
  16. :error
  17. exit /b 1
  18. goto end
  19. :end
  20. endlocal