Microsoft uses file associations to set default programs for opening different file types on all its operating systems. As a result, when you open a file, be it text, image, or document, on your ...
Run a copy job and copy your Program Files directory to the new location. Then, change the registry key for it in HKLM\Software\Microsoft\Windows\CurrentVersion. The key is named "ProgramFilesDir".