# Error Compiling UE4 using VS2013 Ultimate

**URL:** <https://forums.unrealengine.com/t/error-compiling-ue4-using-vs2013-ultimate/277695>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [March 21, 2014, 1:06pm UTC](https://forums.unrealengine.com/t/error-compiling-ue4-using-vs2013-ultimate/277695 "2014-03-21T13:06:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![akaboudan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@akaboudan](https://forums.unrealengine.com/u/akaboudan)\
**Post date:** [March 21, 2014, 1:06pm UTC](https://forums.unrealengine.com/t/error-compiling-ue4-using-vs2013-ultimate/277695/1 "2014-03-21T13:06:36Z")

</div>

1-Windows 7/x64 ultimate, Intel core i7 950 @ 3.07GHz, 12 GB RAM.

2- VS 2013 ultimate.

**I received the following Error** :

**Error 1 error** : SetEnvironmentVariablesFromBatchFile: BatchFile D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools…/…/VC/bin/x86\_amd64/vcvarsx86\_amd64.bat does not exist! D:\GitHub\UnrealEngine\Engine\Intermediate\ProjectFiles\EXEC

**Error 2 error MSB3073** : The command “…\Build\BatchFiles\Build.bat UE4Editor Win64 Development” exited with code -1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets 38

---

<div class="post-metadata">

**Author:** ![usher](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@usher](https://forums.unrealengine.com/u/usher)\
**Post date:** [March 22, 2014, 6:59pm UTC](https://forums.unrealengine.com/t/error-compiling-ue4-using-vs2013-ultimate/277695/2 "2014-03-22T18:59:40Z")

</div>

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.

![2051-prev.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/a/70a3375be90b2027ad36b212b7235eb567797298.jpeg)

---

<div class="post-metadata">

**Author:** ![akaboudan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@akaboudan](https://forums.unrealengine.com/u/akaboudan)\
**Post date:** [March 23, 2014, 7:52am UTC](https://forums.unrealengine.com/t/error-compiling-ue4-using-vs2013-ultimate/277695/3 "2014-03-23T07:52:26Z")

</div>

Thanks. This is a result of a VS2013 installation bug.

I had a previous installation on “D:” that was successfully uninstalled, followed by a fresh installation on “C:”.

Unfortunately, the PATH and environment vars were not updated automatically, and remained pointing to non existing directories on “D:” !

I will try again, and hopefully no other install/uninstall messing appear.

---

<div class="post-metadata">

**Author:** ![SlobbishBody](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SlobbishBody](https://forums.unrealengine.com/u/SlobbishBody)\
**Post date:** [April 12, 2014, 5:38pm UTC](https://forums.unrealengine.com/t/error-compiling-ue4-using-vs2013-ultimate/277695/4 "2014-04-12T17:38:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Stephen\_Ellis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stephen_ellis/32/1210665_2.png) [@Stephen\_Ellis](https://forums.unrealengine.com/u/Stephen_Ellis)\
**Post date:** [October 7, 2014, 8:34pm UTC](https://forums.unrealengine.com/t/error-compiling-ue4-using-vs2013-ultimate/277695/5 "2014-10-07T20:34:05Z")

</div>

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.

Thank you.
