Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Pretty much the title says it all; is there a way to enable compatibility mode for all executables in a certain folder and all its subfolders, even those that don't yet exist (subfolders, as well as executables) without doing it manually (right click/properties/compatibility/...)?

Anything that would automate this process in a way would be useful ...

share|improve this question

I doubt it can be done for not-yet-created filesystem objects, as it's probably a property of executables only and I can't see a mechanism for having it inherited on a folder.

What you should be able to do is write a batch script that recurses into a directory and sets compatibility mode on any executables it finds. Said file will need to modify the registry - there needs to be a string value in HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers for each program to run in compatibility mode, with a value of the form oldWindowsVersion [setting [setting...]] [privilegeLevel] - see The "manually via the registry" part of this forum post for details.

You would still have to run it manually when new executables appeared, although you might be able to do something cunning with scheduled tasks.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .