Paul Taylor
Paul Taylor

Reputation: 13120

Can you run a Windows batch file in compatability mode

We run a Java application wrapped as an exe on Windows 7 in Windows XP Compatability mode to solve a performance problem. We also provide a batch file to run the same java application, is there any way to run the batch file using the same compatability mode.

Upvotes: 1

Views: 14505

Answers (2)

zbyszek
zbyszek

Reputation: 41

In command line or bat file:

set __COMPAT_LAYER=WINXPSP3
app_you_want_to_run_in_compatibility_mode.exe

Check also:

Upvotes: 4

Ganesh R.
Ganesh R.

Reputation: 4385

Yes. Just right click the batch file, open properties. In the compatibility tab, set the required compatibility.

Note: AFAIK, Compatibility settings are set in the Windows Registry. Hence if you move the batch file to a different machine, the settings have to be re-applied. Else you need to figure out the registry entries involved and add it to the other machine's registry.

Upvotes: 2

Related Questions