Skip to content

Instantly share code, notes, and snippets.

@mechawrench
Created March 29, 2017 02:25
Show Gist options
  • Save mechawrench/ff16c4ad41709580633828f175653913 to your computer and use it in GitHub Desktop.
Save mechawrench/ff16c4ad41709580633828f175653913 to your computer and use it in GitHub Desktop.
#Windows CMD Prompt (As Administrator)
#http://superuser.com/questions/379375/how-can-i-set-the-compatibility-mode-for-an-executable-from-the-command-line
#Command to Run
for %x in ("*.exe") do reg.exe Add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "%~fx" /d "WINXPSP2" -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment