+IF NOT exist "%EDK_TOOLS_PATH%\set_vsprefix_envs.bat" (\r
+ @echo.\r
+ @echo !!! ERROR !!! The set_vsprefix_envs.bat was not found !!!\r
+ @echo.\r
+ goto end\r
+)\r
+if defined VS2017 (\r
+ call %EDK_TOOLS_PATH%\set_vsprefix_envs.bat VS2017\r
+) else if defined VS2015 (\r
+ call %EDK_TOOLS_PATH%\set_vsprefix_envs.bat VS2015\r
+ call %EDK_TOOLS_PATH%\get_vsvars.bat VS2015\r
+) else if defined VS2013 (\r
+ call %EDK_TOOLS_PATH%\set_vsprefix_envs.bat VS2013\r
+ call %EDK_TOOLS_PATH%\get_vsvars.bat VS2013\r
+) else if defined VS2012 (\r
+ call %EDK_TOOLS_PATH%\set_vsprefix_envs.bat VS2012\r
+ call %EDK_TOOLS_PATH%\get_vsvars.bat VS2012\r
+) else (\r
+ call %EDK_TOOLS_PATH%\set_vsprefix_envs.bat\r
+ call %EDK_TOOLS_PATH%\get_vsvars.bat\r
+)\r
+if %SCRIPT_ERROR% NEQ 0 (\r
+ @echo.\r
+ @echo !!! ERROR !!! %VSTool% is not installed !!!\r
+ @echo.\r
+ goto end\r
+)\r
+\r