Is there a way I can set the compatibility mode of an .exe file through the command line on execution of said file?

link|improve this question
feedback

migrated from stackoverflow.com May 22 '10 at 15:02

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 2 down vote accepted

You can use the Application Compatibility Toolkit (ACT) to do this, http://www.microsoft.com/downloads/details.aspx?FamilyID=24da89e9-b581-47b0-b45e-492dd6da2971&displaylang=en.

First you pick the compatibility settings for the application and it will save to an SDB file.

Then to install the SDB you use the following command.

sdbinst -q <path to sdb file>

Then whenever you run the EXE you want after that point Windows will apply the compatibility settings.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.