# Error !!!! Help Please

**URL:** <https://forums.unrealengine.com/t/error-help-please/102>\
**Category:** Community & Industry Discussion\
**Tags:** unreal-engine\
**Created:** [March 20, 2014, 12:51am UTC](https://forums.unrealengine.com/t/error-help-please/102 "2014-03-20T00:51:11Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![GunnerJnr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gunnerjnr/32/1205716_2.png) [@GunnerJnr](https://forums.unrealengine.com/u/GunnerJnr)\
**Post date:** [March 20, 2014, 12:51am UTC](https://forums.unrealengine.com/t/error-help-please/102/1 "2014-03-20T00:51:11Z")

</div>

Hi, I followed the instruction video perfectly for downloading the source code from github (with the only difference being I downloaded the lastest version which is 4.0.1, along with the 2 required files zips), so after forking the code with github and cloning it to the desktop, i then proceeded to copy over the required files zips one by one, once complete I then run the GenerateProjects.bat and this is where the error occurs

now because the window goes in a blink of an eye it took a lot of hard work to see what it said,

but when running it just says:

\Microsoft was unexpected at this time

can anybody help or point me in the right direction as to why it will not create the project solution files for visual studio

Thank in advance

Gunner

---

<div class="post-metadata">

**Author:** ![Keiyentai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Keiyentai](https://forums.unrealengine.com/u/Keiyentai)\
**Post date:** [March 20, 2014, 12:56am UTC](https://forums.unrealengine.com/t/error-help-please/102/2 "2014-03-20T00:56:22Z")

</div>

Can you see if there is any error you could post from the log files?

---

<div class="post-metadata">

**Author:** ![GunnerJnr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gunnerjnr/32/1205716_2.png) [@GunnerJnr](https://forums.unrealengine.com/u/GunnerJnr)\
**Post date:** [March 20, 2014, 12:58am UTC](https://forums.unrealengine.com/t/error-help-please/102/3 "2014-03-20T00:58:41Z")

</div>

> [@Keiyentai;630](#):
>
> Can you see if there is any error you could post from the log files?

Well where would the log files be, basically all the engine code is in the git hub repository in MyDocuments/Github/UnrealEngine/[files]

upon trying to run the batch file to create the visual studio .sln [solution] files I just get the above mentioned error

??

---

<div class="post-metadata">

**Author:** ![DJMidKnight](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DJMidKnight](https://forums.unrealengine.com/u/DJMidKnight)\
**Post date:** [March 20, 2014, 3:45am UTC](https://forums.unrealengine.com/t/error-help-please/102/4 "2014-03-20T03:45:12Z")

</div>

what version of Visual Studio do you have installed?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b1fdf95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b1fdf95](https://forums.unrealengine.com/u/anonymous_user_4b1fdf95)\
**Post date:** [March 20, 2014, 5:57am UTC](https://forums.unrealengine.com/t/error-help-please/102/5 "2014-03-20T05:57:05Z")

</div>

@GunnerJnr,

In Windows, click on Start-\>cmd.exe . Run this command line (cmd.exe) and drag and drop GenerateProjects.bat and click Enter.This will run that \*bat file and should give you a full list of errors, which the \*bat file produce.

---

<div class="post-metadata">

**Author:** ![GunnerJnr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gunnerjnr/32/1205716_2.png) [@GunnerJnr](https://forums.unrealengine.com/u/GunnerJnr)\
**Post date:** [March 20, 2014, 8:04am UTC](https://forums.unrealengine.com/t/error-help-please/102/6 "2014-03-20T08:04:17Z")

</div>

> [@DJMidKnight;764](#):
>
> what version of Visual Studio do you have installed?

I have multiple due to being on a Game Programming course, I have VC++ 2008, VS2010, 2012, 2013

> [@](#):
>
> @GunnerJnr,
> 
> In Windows, click on Start-\>cmd.exe . Run this command line (cmd.exe) and drag and drop GenerateProjects.bat and click Enter.This will run that \*bat file and should give you a full list of errors, which the \*bat file produce.

As previously mentioned I only get the one error and I have no idea what it means or why ?? That was even following your steps here is a screen shot

> **[Screenshot](https://prnt.sc/32fmle)**
>
> Captured with Lightshot

Although I have not resolved my issue just yet, I thought I would share this link as it could be a solution for anybody else who has the same error!

[http://www.blinnov.com/en/2010/06/04/microsoft-was-unexpected-at-this-time/](http://www.blinnov.com/en/2010/06/04/microsoft-was-unexpected-at-this-time/)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4b1fdf95](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4b1fdf95](https://forums.unrealengine.com/u/anonymous_user_4b1fdf95)\
**Post date:** [March 20, 2014, 8:27am UTC](https://forums.unrealengine.com/t/error-help-please/102/7 "2014-03-20T08:27:49Z")

</div>

Well, it seems that GenerateProjects.bat is not running properly because of your system setup/config. I would recommend you to check the installation guide and double check all Environment Variables. Is your system 64 bit?

---

<div class="post-metadata">

**Author:** ![GunnerJnr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gunnerjnr/32/1205716_2.png) [@GunnerJnr](https://forums.unrealengine.com/u/GunnerJnr)\
**Post date:** [March 20, 2014, 8:36am UTC](https://forums.unrealengine.com/t/error-help-please/102/8 "2014-03-20T08:36:14Z")

</div>

> [@DalerHakimov;927](#):
>
> Well, it seems that GenerateProjects.bat is not running properly because of your system setup/config. I would recommend you to check the installation guide and double check all Environment Variables. Is your system 64 bit?

Its OKAY, I have managed to solve it now, JUST!!!

Turns out that it was conflicting with Microsoft Direct X SDK 2006, so after successfully uninstalling this version, the batch file has just completed and created the project solution files FINALLY!!!

All I can assume is that after installing the 2006 Direct X SDK (at a later date) after having already installed Direct X SDK 2010, so I guess it must of somehow set that as the default Direct X SDK path, hence why the batch file could not find the path it was looking for, the link I posted in the above post helped a lot.

Hope this post will help any body else who has a similar problem, cheers for your help everyone 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c501398f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c501398f](https://forums.unrealengine.com/u/anonymous_user_c501398f)\
**Post date:** [April 7, 2014, 5:58pm UTC](https://forums.unrealengine.com/t/error-help-please/102/9 "2014-04-07T17:58:16Z")

</div>

I was having the same issue - dragging the .bat to the cmd window fixed it. It wouldn’t run directly - I have no idea why.

If Gunner reads this: if you make the topic title more descriptive it really helps those of us trying to find fixes. “Error!!!” isn’t very helpful in a search…

---

<div class="post-metadata">

**Author:** ![VegasRich](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VegasRich](https://forums.unrealengine.com/u/VegasRich)\
**Post date:** [October 15, 2014, 2:53pm UTC](https://forums.unrealengine.com/t/error-help-please/102/10 "2014-10-15T14:53:13Z")

</div>

This blog ([\Microsoft was unexpected at this time | blinnov's blog](http://www.blinnov.com/en/2010/06/04/microsoft-was-unexpected-at-this-time/)) pointed out the underlying issue. There are batch files in Visual Studio’s toolkit that use parentheses to enclose paths. This is ok, unless your path has parentheses in it (most Visual Studio installs are to Program Files (x86) ) and those are enclosed in full quotes (") - then it thinks the close parenthesis at the end of (x86) is the end of statement.

Clean your PATH environment variable of full quotes and all is well. I get the feeling that other things might break, however… I’ll report back if I find anything.
