/ Published in: DOS Batch
Choose a Visual Studio toolset from the command prompt.
Use: CHOOSE_VS [x64]
Limitations: Supports VS 2010 and up, expects VS to be installed in the standard place (c:\program files (x86)...)
Use: CHOOSE_VS [x64]
Limitations: Supports VS 2010 and up, expects VS to be installed in the standard place (c:\program files (x86)...)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
@rem Choose the Visual Studio tools to use @echo off SETLOCAL EnableDelayedExpansion REM Part of :colorEcho. See link below ) @rem Check command line arguments SET platform=bad @rem Check Visual Studio version SET bits=32 %vcvarsall% SET vcvarsall= EXIT /B 0 :BAD_ARGS ECHO Usage: CHOOSE_VS Version [x64] ECHO. EXIT /B 1 :BAD_VERSION call :colorEcho 0C "Unsupported Visual Studio version, only 2010 (10), 2012(11), 2013(12) and 2015(14) are supported." EXIT /B 1 :NOT_INSTALLED EXIT /B 1 @REM Taken from here: http://stackoverflow.com/a/21666354/871910 :colorEcho echo off echo.