简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM