UnrealBuildTool : error : System.ComponentModel.Win32Exception (0x80004005) While build in Visual Studio

Hello, while hitting build I get this and nothing helps:

UnrealBuildTool : error : System.ComponentModel.Win32Exception (0x80004005): Nie można odnaleźć określonego pliku
1>                           w System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
1>                           w UnrealBuildTool.XGE.ExecuteTaskFile(String TaskFilePath, DataReceivedEventHandler OutputEventHandler, Int32 ActionCount) w D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Executors\XGE.cs:wiersz 493
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.MakeFile.Targets(44,5): error MSB3075: The command ""D:\Epic Games\UE_4.22\Engine\Build\BatchFiles\Build.bat" UCppEditor Win64 Development -Project="D:\WC\UdemyCpp\UCpp.uproject" -WaitMutex -FromMsBuild" exited with code 5. Please verify that you have sufficient rights to run this command.
1>Done building project "UCpp.vcxproj" -- FAILED.

“Nie można odnaleźć określonego pliku” means: Cannot find specified file.

Visual Studio 2017 (tried with 2019, same problem).

Regenerating dlls Binaries, Intermediate etc. and visual studio file doesnt help

Compiling from UE throws same error.

Development Editor. Win64

Windows 10.0.16299.0 SDK

VisualStudioVersion = 16.0.28315.86

Other projects compile, only this one throw error.

Any help please ?

Did you slove this problem?

o/ this was couple months ago, cant recall ;/ sorry

A bit late, but I had this exact problem, and fixed it by clicking File->Refresh Visual Studio Code Project in the Unreal Editor. Hope this helps to anyone else with this problem.