I have a batch file as follows to clean my UE project.
del *.sln
rmdir /s /q .vs
rmdir /s /q Binaries
rmdir /s /q Intermediate
rmdir /s /q Saved
rmdir /s /q DerivedDataCache
"C:\Program Files (x86)\Epic Games\Launcher\Engine\Binaries\Win64\UnrealVersionSelector.exe" /projectfiles Attaching.uproject
Unfortunately, when I run the batch, I get an error as follows:
I found the last command in the batch by reverse-engineering as shown below:
Question
What is the correct way to generate Visual Studio project files from a batch file?