我有一个exe,我想从批处理脚本内设置其对windows XP sp3的兼容性使用批处理脚本
例如,如果我右键点击,我得到一个对话框
'candle' properties
选择
'compatibility' option
有一个复选框,文本为
'Run this program in compatibiltiy mode for '
然后有一个可用的操作系统列表,我想在我的批处理文件中复制相同的
From this post
reg.exe Add "HKLMSoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers" /v "C:Program FilesMyAppTest.exe" /d "WINXPSP3"
可用的兼容模式:
Value Description
WIN95 Windows 95
WIN98 Windows 98
WIN4SP5 Windows NT 4.0 SP5
WIN2000 Windows 2000
WINXPSP2 Windows XP SP2
WINXPSP3 Windows XP SP3
VISTARTM Vista
VISTASP1 Vista SP1
VISTASP2 Vista SP2
WIN7RTM Windows 7
WINSRV03SP1 Windows Server 2003 SP1
WINSRV08SP1 Windows Server 2008 SP1