Tried to upgrade one project to 4.25, error 9009 happened, nothing works now

Hi, how are you doing?

I have three projects (v. 4.24.3) now and decided to upgrade one of them to 4.25.0. I opened the UE4 4.25, selected my project and I said yes to the upgrade question. The process seemed to be error free, but when I tried to CTRL + F5 in Microsoft Visual Studio 2019, this error showed up:

Error List:

Output log:

1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(46,5): error MSB3073: The command "chcp 65001 >NUL && C:\UE_4.25\Engine\Build\BatchFiles\Build.bat TestingEditor Win64 Development -Project="C:\Users\Leandro\Documents\Unreal Projects\Testing\Testing.uproject" -WaitMutex -FromMsBuild" exited with code 9009.

I’m telling you that all my projects are very simple. Like a student learning at rookie level tutorials. After googling and nothing have worked, I tried to open my other projects. To my surprise, none of them worked. All of them the same error happens. I have tried:

  1. Deleting the binaries folder

  2. Re-genarate the Project Files

  3. Use my project 4.24 backup

  4. Reinstall Microsoft Visual Studio

  5. Changed to Visual Code (complained about my .h files include, so I gave up…)

  6. I’ve checked and the Build.bat is there.

So, how my attempt to upgrade one project screw up all UE4 in my computer? That doens’t make sense. I even tought it was MVS, but I reinstalled it and problem was still there. I create a brand new project with UE4 4.25.0 and the problem was there too.

Any lights?
Thank you!

Well guys, thanks to two very kind souls of UE4 Discord Channel, I figure this out. In the output log, the Visual Studio 2019 was trying to acess the chcp command. It wasn’t being sucessuful. I discovered that C:\Windows\System32 wans’t in the “System variables → PATH”.

It seems that dhcp is used to change files, so it makes sense things broke when I tried to update a project to a newer UE4 version.

Once I put that there, everything was fine again. Thanks for help and I have no ideia how that happened. Maybe it was me by accident when I added the ffmpeg and MinGW, maybe not.

Severity Code Description Project File Line Suppression State
Error MSB3073 The command “C:\WINDOWS\System32\chcp.com 65001 >NUL
“C:\Unreal Engine\UE_4.25\Engine\Build\BatchFiles\Build.bat” MyProjectEditor Win64 Development -Project=“C:\Users\Onur\Documents\Unreal Projects\MyProject\MyProject.uproject” -WaitMutex -FromMsBuild” exited with code 6. MyProject C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets 46

UNRESOLVED ISSUE

MSB3073 // chcp 65001