我们在 Windows 7 上以 Windows XP 兼容模式运行包装为 exe 的 Java 应用程序,以解决性能问题。我们还提供了一个批处理文件来运行相同的 java 应用程序,有什么方法可以使用相同的兼容模式运行批处理文件。
最佳答案
在命令行或bat文件中:
set __COMPAT_LAYER=WINXPSP3
app_you_want_to_run_in_compatibility_mode.exe
同时检查:
关于windows - 您可以在兼容模式下运行 Windows 批处理文件吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12105861/