Generate Project Files, Error build.bat not found

Trying to generate VS project files for an existing project. I’ve tried via menu (Tools → ) and I’ve tried right click context menu option on the uproject file. Always the same error.

ERROR: The batch file does not appear to be located in the Engine/Build/BatchFiles directory. This script must be run from within that directory.

When I try to create a C++ class (Tools → New C++ Class) I get all the correct prompts/options. It finishes with I need to recompile from source to have it show in content browser AND Generate proj files failed.

No issues with UE5.0 builds.

I have VS 2019 and 2022, all components and optionals that are needed (per doc).


On another note (might be linked) I tried installing 5.1 from git (zip version) last night. Everything ran fine except the UE5 Target Build (VS 2019 and 2022). Same error or similar, if I remember correctly.

Any help would be appreciated. Its been a minute since I’ve had troubleshoot this type of jizzle.

2 Likes

Hey @Rev0verDrive did you find a solution?
I have the same error.

Yeah, mine was caused by an illegal character in the file path of the engine install location.

I had an exclamation point in the name.

U://!Engines/…