【问题标题】:Is it possible to call specific msconfig tab?是否可以调用特定的 msconfig 选项卡?
【发布时间】:2013-08-24 07:10:42
【问题描述】:

我需要知道是否可以通过 c# 应用程序调用系统配置的特定选项卡。

到目前为止,我只能通过我的代码调用msconfig.exe,即

ProcessStartInfo pf = new ProcessStartInfo(
       Path.Combine(Environment.SystemDirectory, "msconfig.exe"));
pf.Verb = "runas";
Process.Start(pf);

现在我只想在单击按钮时调用 StartUp 打开单个选项卡。 请给我一些解决方案。

【问题讨论】:

    标签: c#


    【解决方案1】:

    Msconfig 将数字作为参数来决定显示哪个选项卡。 -4 是启动选项卡

    ProcessStartInfo pf = new ProcessStartInfo(
           Path.Combine(Environment.SystemDirectory, "msconfig.exe"));
    pf.Verb = "runas";
    pf.Arguments ="-4";
    Process.Start(pf);
    
    +--------------------+
    |   Arg  |    Tab    |
    +--------------------+
    |   -1   | General   |
    |   -2   | Boot      |
    |   -3   | Services  |
    |   -4   | Startup   |
    |   -5   | Tools     |
    +--------------------+
    

    blog with the arguments 微软似乎没有关于这个论点的正式文档。这适用于我在 Windows7 上。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-08-08
      • 1970-01-01
      • 2011-05-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多