Unable to generate c++ projects file 4.9 *Found Fix*

I’ve got this problem too. UE4 is unable to do anything c++ related. Creating a new project, adding classes, nothing works. This goes for 4.9.1 as well as 4.8.3

Looking around, I’ve read that the batch file in AppData\Local\Temp is important. Running the batch file does nothing to the corresponding tmp file. It remains empty. However… my batch file has this line…
"call “C:\PROGRA~2\MICROS~3.0\Common7\Tools....\VC\bin\X86_AM~1\VCVARS~1.BAT”

If I change it so that it reads this…
call “C:\PROGRA~2\MICROS~3.0\Common7\Tools\VCVARS~1.BAT” (removing ....\VC\bin\X86_AM~1)
…then the tmp file will be filled with Environment Variables. Which I’m guessing it what SHOULD happen.

I removed that part of the path because I realised that VCVarsQueryRegistry.bat is located in… C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools.

So surely the batch file that UE4 is creating in my Temp folder is wrong isn’t it? Question is, how do I stop these batch files from being written incorrectly…?

I’m running the editor from Launcher by the way, always have.

Edit: Ok, so I’ve realised that in batch files, writing "\ . . " Is a way to get to the parent folder. Which means I’ve found vcvarsx86_amd64.bat that the AppData tmp batch file is referring to. What are the tmp file in the AppData supposed to look like? Should it be an XML with Environment Variables like I was getting?