Is there a way to update visual studio project settings if the engine install is moved?

I recently upgraded my machine to windows 10 and in the process the drive with unreal engine was changed from E:\ to D:\. My current project still compiles and runs in the editor but I can no longer build it with visual studio because the project settings in visual studio all still reference E:\ instead of D:\. Is there a way to re-generate these files?

I was going to manually change these settings but there are a TON of them…

I figured it out. I learned about the Generate Visual Studio Project Files context menu option but it was not working for me (it would only ask me which program to use to open the file). I finally found this batch script:

 "{EPIC_GAMES_PATH}\{UE_VERSION}\Engine\Binaries\DotNET\UnrealBuildTool.exe" -projectfiles -project="%~dp0{PROJECT_FILE_NAME}.uproject" -game
      PAUSE

from this question: "Generate Visual Studio project files" automatically closes output window after error - Platform & Builds - Unreal Engine Forums which did work.