【问题标题】:Batch Script - set the exe properties automatically批处理脚本 - 自动设置 exe 属性
【发布时间】:2013-01-01 10:35:03
【问题描述】:

我有一个 exe,我想从批处理脚本中设置它与 Windows XP sp3 的兼容性 使用批处理脚本

例如,如果我右键单击,我会得到一个对话框

 'candle' properties

在这个我选择

 'compatibility' option

有一个复选框,写的文字是

 'Run this program in compatibiltiy mode for '

然后有一个可用操作系统列表,我想在我的批处理文件中复制相同的操作系统

【问题讨论】:

    标签: windows batch-file batch-processing cmd


    【解决方案1】:

    来自post

    reg.exe Add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\Program Files\MyApp\Test.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
    

    【讨论】:

      猜你喜欢
      • 2018-10-07
      • 2013-04-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-04
      • 2020-12-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多