Right click on mycomputer and select properties and in Advanced system settings click on Environment variables>
You should have VS120COMNTOOLS with value "(Installed directory Like C):\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools" in System Variables.
If not then Add it. Or check the directory to be installed directory.
I’m having this same problem. I’ve followed the above directions and still have the following error:
1>EXEC : error : SetEnvironmentVariablesFromBatchFile: BatchFile E:\Microsoft Visual Studio\Common7\Tools…/…/VC/bin/x86_amd64/vcvarsx86_amd64.bat does not exist!
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ““C:\Program Files\Unreal Engine\4.0\Engine\Build\BatchFiles\Build.bat” ShaleEditor Win64 Development “E:\Shale\Shale\Shale.uproject” -rocket” exited with code -1.
I realize the file above doesn’t exist, but my VS120COMNTOOLS variable is set to the correct path - this just seems to be calling the wrong one. Is there another variable I need to set?
We apologize that we were not able to resolve this post at the time it was created. We have since improved our systems and workflows to provide better coverage going forward. Many changes have occurred to the Unreal Engine since this post was made, so we are marking this as Resolved for tracking purposes. If you still require assistance with this issue, please let us know. If the issue has changed in any way, we recommend you create a new post.