My windows 8 user name had “&” character, I figured out it was the cause of the problem …
I changed the user name which required registry modification , only then I could rename the user folder deleting the “&”
THe GenerateProjectFiles worked after that