简体   繁体   English

您可以在兼容模式下运行Windows批处理文件吗

[英]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. 我们以Windows XP兼容模式在Windows 7上运行包装为exe的Java应用程序,以解决性能问题。 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. 我们还提供了一个批处理文件来运行相同的Java应用程序,是否可以使用相同的兼容模式运行该批处理文件。

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. 注意:AFAIK,兼容性设置在Windows注册表中设置。 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. 否则,您需要弄清楚所涉及的注册表项,并将其添加到另一台计算机的注册表中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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