Failed to compile (The system cannot find the path specified.)

How to solve this error ?

Build started...
1>------ Build started: Project: RedDragonDemo, Configuration: Development_Editor x64 ------
1>Using bundled DotNet SDK
1>Log file: C:\Users\\AppData\Local\UnrealBuildTool\Log.txt
1>Creating makefile for RedDragonDemoEditor (no existing makefile)
1>UnrealBuildTool : error : The system cannot find the path specified.
1>UnrealBuildTool : error : The system cannot find the path specified.
1>UnrealBuildTool : error : Custom build step C:\WINDOWS\system32\cmd.exe /C "C:\Yahia\UE5Projects\RedDragonDemo\Intermediate\Build\Win64\RedDragonDemoEditor\Development\PreBuild-1.bat" terminated with exit code 1
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command "C:\Yahia\UE_5.0\Engine\Build\BatchFiles\Build.bat RedDragonDemoEditor Win64 Development -Project="C:\Yahia\UE5Projects\RedDragonDemo\RedDragonDemo.uproject" -WaitMutex -FromMsBuild" exited with code 6.
1>Done building project "RedDragonDemo.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========